How to open a form more than once?

shehzad

New member
Joined
Jan 7, 2006
Messages
3
Programming Experience
10+
When v write any application and execute it , v can one each form only once and second time if u try opening the same form in the same execuation phase it gives an error.

So how to solve this problem???????????
 
You can open as many instances of a form as you want. If you are getting an exception then it is because your code is faulty. You should post your code (only the part that displays the form) and let us know the details of the exception.
 
Chances are it is because you are trying to Show a form that has already been Closed. When you Show a form and then Close it the form is destroyed. If you want to then Show the form again you have to create a New instance. If you really want to Show the same instance then you need to Hide the form instead of Closing it.
 
Back
Top