By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,301 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,301 IT Pros & Developers. It's quick & easy.

Getting rid of scroll bars on the WebBrowser control.

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.