Results 1 to 2 of 2

Thread: [RESOLVED] Closing a Form, then Showing it Again

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Location
    Austin, TX
    Posts
    120

    Resolved [RESOLVED] Closing a Form, then Showing it Again

    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

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Closing a Form, then Showing it Again

    You really shouldn't double post, though I see why you did in this case.

    Anyways, I gave you a more thorough suggestion in the other thread.
    My usual boring signature: Nothing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width