471,355 Members | 1,589 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,355 software developers and data experts.

Getting rid of scroll bars on the WebBrowser control.

UJ
How can I get rid of the scroll bars when I use a WebBrowser control? If the
page/object I'm trying to display is to big - tough! I don't want the scroll
bars.

Thanks.

Jeff.
Jan 3 '06 #1
1 2706
Jeff,

You need to implement IDocHostUIHandler in order to do this in CLR 1.1.
Use IDocHostUIHandler::GetHostInfo to pass back
DOCHOSTUIFLAG_SCROLL_NO. Using the 2.0 WebBrowser control, there may
be an easier way, but I am unaware of it. I have a blog post on
WebBrowser resources that you may find helpful:
http://www.colinneller.com/blog/Perm...15665bc5d.aspx

Regards,
Colin Neller
http://www.colinneller.com/blog

UJ wrote:
How can I get rid of the scroll bars when I use a WebBrowser control? If the
page/object I'm trying to display is to big - tough! I don't want the scroll
bars.

Thanks.

Jeff.


Jan 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Arlie Rahn | last post: by
7 posts views Thread by news-server.san.rr.com | last post: by
reply views Thread by Eric | last post: by
1 post views Thread by David_from_Chicago | last post: by
6 posts views Thread by bgold12 | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.