Sounds like you need an MDI form. You can add an MDI form by selecting Add MDI Form from a Project menu. The you would add another form (regular form) and set it's MDIChild property to TRUE. Also, the Form that you have by default, change it's MDIChild property to TRUE as well. Add a Button to the Form1.
Select Project properties from the Project menu and change Startup Object to MDI form.
Then use this code:
MDI code
Code:
Private Sub MDIForm_Load()
Form1.Show
End Sub
Form1 code
Code:
Private Sub Command1_Click()
Form2.Show
End Sub