Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determining scrollbar visibility based on fit

Status
Not open for further replies.

OldxBaser

Programmer
Nov 5, 2009
24
Hopefully there is a simple way that is just eluding me right now.

I am adding a simple form to some projects that will use the _WebBrowser4 ffc to display a pre-selected HTML file that was passed from the calling form as a parameter. (This will be used as a type of dynamic Help instruction for new users.) I initialize this form on the right-side of the main screen, sized based on a comfortable height & width to handle 90% of our available HTML files without the need to display the scroll bars, however there are a few possible files that will need a vertical scrollbar.

If the height of the display activates the vertical display bar, I would like to adjust the height just enough to accommodate the HTML file without showing the vertical scrollbar. I would also need to leave the scrollbar visible if a predetermined max height is reached.

How can I determine if the vertical scrollbar is visible for that displayed HTML file?

 
I don't know of any way to control that, and I also don't think I'd ever try it. The whole *point* of using a browser control and HTML is that it adjusts to content dynamically.

Let the control do what it's good at doing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top