by Shepard (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 29th September 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)
This code lets you load and open another form.
'Create a comand butten, "CommandButton1" in "form1"
'then double-click the command butten. This will open the codewindow.
Private Sub CommandButton1_Click()
Load form2
form2.Show
End Sub
' If you test the command button now, it will open the new form.
To remove the new form, create a comand butten, "CommandButton2" in "form2"
double-click the command butten to go to the code-window.
Private Sub CommandButton2_Click()
form2.hide
End Sub
'If you have any questions just send me a mail, and I will help you ASAP.
'Nothing sucks more then getting stuck in VB.