Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 forms already created in Design mode, need to load second from first

Status
Not open for further replies.

DaveRussell

Programmer
Jul 31, 2003
22
CA
Hello, I have two windows forms already created in my designer. I have looked through the forums to find out how to open the second form from the first form, but haven't quite found a clear answer.

The form i am trying to load is going to be a search form, where the user will enter an ID, and the results will appear on the first form.

Keeping this in mind, i already have the layout and design prepared in the Design mode of VB.NET. all i want to do is have a menu item "Search" on the first form load this pre-made form. is this possible?

this seems like such an easy thing i must be missing something slightly obvious. any help would be humbly appreciated.

thanks
dave.
 
thank you devCity.net for this one:

Private Sub ShowForm2Button_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles ShowForm2Button.Click
Dim F2 As New Form2()
F2.Show()
End Sub

Form2 is the Form2.vb I had designed, i guess it was pretty simple.

thanks anyways.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top