I am currently trying to program a game with multiple forms. As of now I have it hide the main form that loads when the program is executed. I am having difficulties getting this form to be unhidden when the user clicks the button to return to the main form. Here is snippets of the code i have so far:
Main Form
Me.Hide()
Dim Set1 As New Set1
Set1.ShowDialog ()
That part works fine. The main form is hidden and they can use Set1 correctly.
Here is where the problem comes in...
Set1
Me.Close()
Form1.ShowDialo g()
The main form is called Form1 in design and it tells me, "Reference to a non-shared member requires an object referance."
Any help would be appreciated.
Main Form
Me.Hide()
Dim Set1 As New Set1
Set1.ShowDialog ()
That part works fine. The main form is hidden and they can use Set1 correctly.
Here is where the problem comes in...
Set1
Me.Close()
Form1.ShowDialo g()
The main form is called Form1 in design and it tells me, "Reference to a non-shared member requires an object referance."
Any help would be appreciated.
Comment