Wrox Programmer Forums
|
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 August 18th, 2006, 05:42 AM
Registered User
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB basic stuff for newbie

HI all

I understand most of the basic concepts but in a prog say with three forms, does VB execute these in order or do you have to place code in each form ,so that one form calls another or what?

Thanks Guys

alan :)
 
Old August 18th, 2006, 11:10 AM
Authorized User
 
Join Date: Jul 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You have to call each form using code

set one form as your startup form, the one you start your project with is default startup form, and them from within that form you can call other forms

form2.show

form3.show

form4.show

etc

 
Old August 18th, 2006, 11:24 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Dan is right, but you also can open them in the way you described, wherein each form that gets opened opens the next one. VB is flexible—however you want to do this is fine with VB.
 
Old August 18th, 2006, 11:55 AM
Registered User
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default




Thank you gentleman ..that makes sense to me ,it was just that when following some progs (code ?) it did not seem obvious to me how it was done, form.show did not appear to be used...am I wrong here ?

Ta!

 
Old August 18th, 2006, 04:27 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Hard to say without seeing what you saw... What did you see?
 
Old August 19th, 2006, 03:05 AM
Registered User
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

VB6

Good point Brian however problem is resolved , an error was in a published program (from a book) and was that form.load was used instead of form.show , hence my confusion.






Similar Threads
Thread Thread Starter Forum Replies Last Post
VB Net MSAccess need to get Tbl Field stuff jhkraft Pro VB Databases 0 March 13th, 2008 05:11 PM
VB newbie needs help gogordon1 VB.NET 2002/2003 Basics 3 June 11th, 2007 10:40 AM
[newbie] Please help me with Compiling in VB 2005 ryan.webb BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 3 April 11th, 2007 06:35 AM
Basic Stuff... Colm_L Javascript How-To 0 September 14th, 2006 08:02 AM
newbie vb.net question dib VS.NET 2002/2003 4 February 5th, 2004 04:46 PM





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