Use Browser control.

I put a WebBrowser control into a form,when I run the program,the control always appears a verticality scroll bar on the right,anyone knows how to remove the scrol bar?
shalaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

shalaAuthor Commented:
Edited text of question.
0
mcriderCommented:
I have never gotten the ShowScrollBar API to turn off a WebBrowser scrollbar, so I take the "lazy" way out...

I put the WebBrowser control in a PictureBox, then I size the PictureBox smaller than the WebBrowser window... Just small enough so that the scrollbars are "clipped off" by the picturebox...

I know... It's kinda lame, but it does work...

Cheers!
0
mcriderCommented:
Oh, by the way, if you have control of the HTML source, you can put "scroll=no" in the body tag and the scrollbars will not be shown...

For example:
     <HTML><TITLE>MyPage</TITLE>
     <BODY scroll=no>
     </HTML>

Cheers!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

mark2150Commented:
Keep your web page short enough so it fits on one screen and the scroll bar will go away...

M
0
mcriderCommented:
mark2150,

That will not work if shala doesn't have control over what html is loaded...

Cheers!
0
mark2150Commented:
True, but what is point of blocking scroll bar? You're effectively saying that you don't want the user to see the rest of a page. Since they can't see it, what is point of putting out HTML that they can't scroll down and see?

If you're going to let them *visit* a page, then they should be able to *see* the page.

M
0
mcriderCommented:
Well, it depends on what shala is using the control for...  For example, I've used in the past for animation by using animated GIFs, as well as an app that had hotlinks on the page and I didn't want the user to scroll, just click the link and have the WebBrowser control jump to a # reference on the same page...

Cheers!
0
shalaAuthor Commented:
That is a good idea! Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.