|
-
Oct 18th, 2004, 03:19 AM
#1
Thread Starter
Addicted Member
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
Last edited by haihems; Oct 19th, 2004 at 01:06 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|