MedVision ad

linking forms in vb (1 Viewer)

churcho

New Member
Joined
Feb 7, 2004
Messages
3
Hey, i have vb, but it doesn't have help, and i was wondering how to link a button to a seperate form?, if someone could help me it wuld be greatly appreciated.
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
somewhere in your first form:
Code:
Private Sub Command1_Click()
    Form2.Show
End Sub
 

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
Originally posted by churcho
Thanx sunny, that worked perfectly
Make sure whether or not your form is going to be shown modal or just shown normally.

For example if you had a form that was used for options, and you wanted the user to do whatever they want to change the options and only allow them to have focus or be able to click on the main form, then you have to set the options form to be modal when showing it.

this can be achieved by this

Form2.Show vbModal
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top