Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Close form in VB6
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




Report this thread to moderator Post Follow-up to this message
Old Post
MichaelK
04-29-05 08:55 PM


Re: Close form in VB6
"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



Report this thread to moderator Post Follow-up to this message
Old Post
Al Reid
04-29-05 08:55 PM


Re: Close form in VB6
"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..."


Report this thread to moderator Post Follow-up to this message
Old Post
Bob Butler
04-29-05 08:55 PM


Re: Close form in VB6
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..."
>



Report this thread to moderator Post Follow-up to this message
Old Post
MichaelK
04-29-05 08:55 PM


Re: Close form in VB6
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. 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Veign
04-29-05 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Basic archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:15 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.