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. C#
  4. Microsoft Web Browser - no scroll bars and no right click?

Microsoft Web Browser - no scroll bars and no right click?

Scheduled Pinned Locked Moved C#
question
5 Posts 2 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.
  • A Offline
    A Offline
    aleXXXka
    wrote on last edited by
    #1

    In my form I use Microsoft Web Browser that support NewWindow2 event. In habitual WebBrowser object there are properties that do what i need but in Microsoft Web Browser i can not find this properties. 1)I need to disable scroll bars. 2)I need to disable menu of right click. 3)I need to disable option of 3 mouse button in browser. How do I do this in Microsoft Web Browser? p.s. I create programm that has small web browser (50x50 px) and i need that user only can do left click in the browser.

    S 1 Reply Last reply
    0
    • A aleXXXka

      In my form I use Microsoft Web Browser that support NewWindow2 event. In habitual WebBrowser object there are properties that do what i need but in Microsoft Web Browser i can not find this properties. 1)I need to disable scroll bars. 2)I need to disable menu of right click. 3)I need to disable option of 3 mouse button in browser. How do I do this in Microsoft Web Browser? p.s. I create programm that has small web browser (50x50 px) and i need that user only can do left click in the browser.

      S Offline
      S Offline
      spamoom
      wrote on last edited by
      #2

      You can use webBrowser1.ScrollBarsEnabled = false; in .NET. As for right click I'd do it with javascript on the actual page, haven't a clue how to do it with code.

      A 2 Replies Last reply
      0
      • S spamoom

        You can use webBrowser1.ScrollBarsEnabled = false; in .NET. As for right click I'd do it with javascript on the actual page, haven't a clue how to do it with code.

        A Offline
        A Offline
        aleXXXka
        wrote on last edited by
        #3

        Can you write me this javascript code please?

        S 1 Reply Last reply
        0
        • A aleXXXka

          Can you write me this javascript code please?

          S Offline
          S Offline
          spamoom
          wrote on last edited by
          #4

          http://javascript.internet.com/page-details/no-right-click.html[^] Google reveals all :)

          1 Reply Last reply
          0
          • S spamoom

            You can use webBrowser1.ScrollBarsEnabled = false; in .NET. As for right click I'd do it with javascript on the actual page, haven't a clue how to do it with code.

            A Offline
            A Offline
            aleXXXka
            wrote on last edited by
            #5

            Microsoft Web Browser have not ScrollBarsEnabled property. I speak about browser that described here http://support.microsoft.com/kb/815714 It is another WebBrowser, not habitual web browser from ToolBar. It is located here - COM Components-Microsoft Web Browser.

            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