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 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?