Results 1 to 4 of 4

Thread: Webbrowser ocx without right scrollbar?

  1. #1

    I am using the webbrowser OCX in my app to display a simple html page. However, the right scrollbar always appears, even it there is no need to (it is disabled then, but it is still visible).

    After playing around a bit with Spy++, I found out that the webbrowser ocx has the extended style WS_EX_RIGHTSCROLLBAR set. I guess that I can get rid of the scrollbar by revoking that style, am I correct? How can I remove this style?

    Felix Haas

  2. #2
    New Member
    Join Date
    Nov 2000

    Red face


    Here is what I have done with mine,

    I have put a picture box with the background color of my form, on top of the WebBrowser object scrollbar so that it completely disappear.

    When I want it back, I just push a button.

    Cool for me !

  3. #3
    supervisor, maxwseven's way is the best your going to do. Webbrowser has a bug where the hWnd property won't work. Don't know why. And in order for you to remove it, you really need the hWnd, unless you use a picturebox.

    See that bug yourself (Msgbox Webbrowser1.hWnd).

  4. #4
    New Member
    Join Date
    May 2000

    Lightbulb Try it!

    I think you can do so:

    Very glad to see you !
    I'm a very begginer!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


Click Here to Expand Forum to Full Width