Code Comments
Programming Forum and web based access to our favorite programming groups.It sounds crazy but I can't find the way how to close the form after some process finished on it. Only can hide. I need to know how can I close the from from itself, and also how can I do it from another form. Thanks, Michael
Post Follow-up to this message"MichaelK" <michaelk@gomobile.com> wrote in message news:e61mhcNTFHA.2124@TK2MSFTNGP14.phx. gbl... > It sounds crazy but I can't find the way how to close the form after some > process finished on it. > Only can hide. > I need to know how can I close the from from itself, > and also how can I do it from another form. > > Thanks, > Michael > > > Have you tried to 'Unload' it? -- Al Reid
Post Follow-up to this message"MichaelK" <michaelk@gomobile.com> wrote in message news:e61mhcNTFHA.2124@TK2MSFTNGP14.phx.gbl > It sounds crazy but I can't find the way how to close the form after > some process finished on it. > Only can hide. > I need to know how can I close the from from itself, Unload Me > and also how can I do it from another form. Unload <formreference> Note that to clear module-level variables you have to be sure to release any/all references to the form. That may happen automatically or be as simple as "Set Form1=Nothing" but it depends on how you load the form in the first place and how you pass references to it around in your application. -- Reply to the group so all can participate VB.Net: "Fool me once..."
Post Follow-up to this messageThanks guys for the fast respond. I was trying Me.Unload but there is the closet was Me.Hide. Didn't try Unload Me, wasn't expecting this format. Thanks anyway, I will try. "Bob Butler" <tiredofit@nospam.com> wrote in message news:u3aL5fNTFHA.3840@tk2msftngp13.phx.gbl... > "MichaelK" <michaelk@gomobile.com> wrote in message > news:e61mhcNTFHA.2124@TK2MSFTNGP14.phx.gbl > > Unload Me > > > Unload <formreference> > > Note that to clear module-level variables you have to be sure to release > any/all references to the form. That may happen automatically or be as > simple as "Set Form1=Nothing" but it depends on how you load the form in > the > first place and how you pass references to it around in your application. > > -- > Reply to the group so all can participate > VB.Net: "Fool me once..." >
Post Follow-up to this messageAdditional information for you; Life Cycle of Visual Basic Forms: http://msdn.microsoft.com/library/d...lbasicforms.asp -- Chris Hanscom - Microsoft MVP (VB) Veign's Resource Center http://www.veign.com/vrc_main.asp -- Read. Decide. Sign the petition to Microsoft. http://classicvb.org/petition/ "MichaelK" <michaelk@gomobile.com> wrote in message news:%23pFJ2xNTFHA.3140@TK2MSFTNGP14.phx.gbl... > Thanks guys for the fast respond. > > I was trying Me.Unload but there is the closet was Me.Hide. > Didn't try Unload Me, wasn't expecting this format. > Thanks anyway, I will try. > > > "Bob Butler" <tiredofit@nospam.com> wrote in message > news:u3aL5fNTFHA.3840@tk2msftngp13.phx.gbl... application. > >
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.