Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. disabling right click in web browser

disabling right click in web browser

Scheduled Pinned Locked Moved Visual Basic
csharp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pathak78
    wrote on last edited by
    #1

    Hi, How i can disable right click in web browser in vb.net project please give me an idea if any one have Thanks, Bye

    C M 2 Replies Last reply
    0
    • P pathak78

      Hi, How i can disable right click in web browser in vb.net project please give me an idea if any one have Thanks, Bye

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      It has nothing to do with VB.NET, the only code that runs on a browser is javascript.  It's annoying when sites do it, but if you google, you're bound to find examples of jscript code for killing right click.

      Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

      1 Reply Last reply
      0
      • P pathak78

        Hi, How i can disable right click in web browser in vb.net project please give me an idea if any one have Thanks, Bye

        M Offline
        M Offline
        Martin Smith
        wrote on last edited by
        #3

        Assuming it is the Internet Explorer web browser that you have embedded into your form/project, you can disable the right-click context menu by setting the WebBrowser property IsWebBrowserContextMenuEnabled to False. I hope this helps, Regards,

        Martin

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups