Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For 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
 
Old April 25th, 2006, 05:58 PM
Friend of Wrox
 
Join Date: Mar 2005
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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



http://i5.photobucket.com/albums/y18...asposition.jpg
 
Old October 17th, 2006, 06:13 PM
Authorized User
 
Join Date: Jun 2006
Posts: 73
Thanks: 1
Thanked 1 Time in 1 Post
Default

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.






Similar Threads
Thread Thread Starter Forum Replies Last Post
using Form1 of Workbook1 in Workbook2 munzer1 Excel VBA 0 July 20th, 2007 12:53 PM
How can I print the Form1 banner on my report page furjaw Visual Basic 2005 Basics 0 April 25th, 2006 11:59 PM
Problem Opening Form1.xml alfyk20vtec Infopath 1 December 19th, 2005 05:24 AM
document.form1 MuthuAL Classic ASP Databases 5 January 4th, 2005 10:00 AM
can not find form1 specified error sadiku ASP.NET 2.0 Basics 1 October 8th, 2004 05:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.