Showing and hiding a form[Solved]
Hi,
I know vb6 but i'm new to vb.net.
In vb.net windows forms, I like to show from2 by clicking a button in from1. At that time I dont want the from1 still open (I want to close it or hide it). After working in form2 by clicking the button in that from, the form1 should be open.What can i do for that?
I did the following, but it is not working.....
vb coding:
'Form1 button click
Dim x as from2
x.show()
me.hide()
'Form2 button click
dim y as form1
me.close()
y.show()
This thing is working like , it hides form1 and show form2, after that while i click the button in form2 it closed and the form1 is shown. But when i closed the window vb couldn't close the project, it still running.
Please tell me the solution.
Thanks...
haihems :rolleyes:
Reg. showing and hiding forms
Hi Asgorath
Thanks for your reply...
I've tried your coding, but i got the following 3 build errors:
1) 'MyForm1' is not a member of 'WindowsApplication3.Form1'.
2) 'Set' parameter must have the same type as the containing property.
3) Value of type 'String' cannot be converted to 'WindowsApplication3.Form1'.
Why it is coming like this and what can I do for that????
Please tell me...
:rolleyes: