|
|
| MichaelK 2005-04-29, 3:55 pm |
| 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
| |
| Al Reid 2005-04-29, 3:55 pm |
| "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
| |
| Bob Butler 2005-04-29, 3:55 pm |
| "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..."
| |
| MichaelK 2005-04-29, 3:55 pm |
| 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...
> "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..."
>
| |
|
| Additional 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.[color=darkred]
>
>
|
|
|
|