Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
i have many forms and i want to know that what can i do for this problem..

i want to open a form 2 using button click available on form to and i want closed form1..
that is i want to open only 1 form at a time...
can any one suggest the way to do so...(way must be secure)

thankx in advance...
Posted
Comments
[no name] 22-Sep-12 14:48pm    
Maybe you can explain how Form.Close is not "secure"?
Sergey Alexandrovich Kryukov 22-Sep-12 22:36pm    
It all depends on the following: when you close that form, do you want to close it forever, or you want to show the same form again, ever?
--SA

1 solution

How about
VB
Me.Hide()
or
VB
ExampleForm.Hide()
You can call it form other forms that way!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900