Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,326 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,786 people online right now. Registration is fast and FREE... Join Now!




linking forms

 
Reply to this topicStart new topic

linking forms

liana
27 Aug, 2008 - 05:29 AM
Post #1

New D.I.C Head
*

Joined: 27 Aug, 2008
Posts: 1

hi im a beginner at VB and im wondering how to link forms. iv designed the first form with a command button continue and the code segment i thought would work is
CODE

Private Sub CommandButton1_Click()
Load UserForm2
End Sub
any help would be appreciated
User is offlineProfile CardPM
+Quote Post

newguy13
RE: Linking Forms
27 Aug, 2008 - 05:38 AM
Post #2

New D.I.C Head
*

Joined: 24 Aug, 2008
Posts: 5

private sub commandbutton1_click()
form2.load
form1.hide
end sub

"form1" and "form2" are names of the forms.
form1.hide is not necessary,but many times useful.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 07:43AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month