cmsmith81
Jan 23rd, 2007, 03:24 PM
Hi,
I am using Visual Studio 2005 (writing a VB program for Pocket PC, but I think this question/answer applies to regular windows forms as well). I have a seemingly simple question:
After I use form1.close, how do I show the form again. form1.show does not work and even the help file says that it will not work (it only works with form1.hide). I do not want to use form1.hide because when I make form1 appear next, I need it to be completely reset to its original state. I believe that there used to be a form1.load in vb4, but it is apparently not available in vs2005.
Alternatively, is there something I can do to simply reset the form back to its original state? It would be much easier to either close and reload the form or reset it rather than programmatically change everything back to its original state.
Any help will be greatly appreciated!!
Thank You,
Corey
I am using Visual Studio 2005 (writing a VB program for Pocket PC, but I think this question/answer applies to regular windows forms as well). I have a seemingly simple question:
After I use form1.close, how do I show the form again. form1.show does not work and even the help file says that it will not work (it only works with form1.hide). I do not want to use form1.hide because when I make form1 appear next, I need it to be completely reset to its original state. I believe that there used to be a form1.load in vb4, but it is apparently not available in vs2005.
Alternatively, is there something I can do to simply reset the form back to its original state? It would be much easier to either close and reload the form or reset it rather than programmatically change everything back to its original state.
Any help will be greatly appreciated!!
Thank You,
Corey