PDA

View Full Version : VB Codes !!!HELP!!! !!!HELP!!!


shaunchilling
04-01-04, 06:39 AM
I need to know what is the code to link forms?

please i need this

ICE Flame
04-01-04, 07:39 AM
1. Create a button. For example, name it "a".
2. Create the form. Form example, name it "b".
3. Now you have 2 options:
Option 1 - link to another "b" and close the current active form.
Code:

Private Sub a_Click()
b.Show
Unload Me
End Sub

Option 2 - link to "b" and don't do anything to the current active form.
Code:

Private a_Click()
b.Show
End Sub


Happy Programming :)