How to predefine location of scrollbar in Form1.We
|
Beginning VB 6For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
How to predefine location of scrollbar in Form1.We
Hi all i wonder how i can specify and predefine the location of scrollbar when using Form1.WebBrowser1.Navigate in vb6 form. I want for example when the form loads the scroll bar is at the location shown in pic . Thanks
Code:
Private Sub Form_Load()
Form1.WebBrowser1.Navigate "http://www.cnn.com"
Form1.Show
End Sub
Well, there are two methods of doing this. 1. Place object (scroll bar) on form at design-time 2. Set the top and Left properties at Form_Load event i.e. run-time.Good Luck.