|
-
Nov 11th, 2000, 08:33 AM
#1
Hi,
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?
Thanks,
Felix Haas
-
Nov 18th, 2000, 07:02 PM
#2
New Member
Hey,
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 !
-
Nov 18th, 2000, 10:04 PM
#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).
-
Dec 16th, 2000, 03:13 AM
#4
New Member
Try it!
I think you can do so:
webbrowser1.document.scroll=false
OK?
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|