Home All Groups Group Topic Archive Search About
Author
29 Jun 2005 6:26 AM
Lespaul36
I want to make a unloadmode like what was in vb6.  I have seen some code
using the stack, but I would prefer to use window messages.  I am trying to
find the calls used for the tast manager shutting down the window.  Any
ideas how to get that?

Author
29 Jun 2005 6:48 AM
Cor Ligthert
LesPaul,

>I want to make a unloadmode like what was in vb6.  I have seen some code
>using the stack, but I would prefer to use window messages.  I am trying to
>find the calls used for the tast manager shutting down the window.  Any
>ideas how to get that?

To give us an idea, what do you want to achieve with that.

Cor
Author
29 Jun 2005 11:32 AM
Phill. W
"Lespaul36" <lespau***@none.net> wrote in message
news:OAqlxNHfFHA.268@TK2MSFTNGP15.phx.gbl...
> I want to make a unloadmode like what was in vb6.

If you're looking for the equivalent of

Sub Form_QueryInload _
( UnloadMode as Integer _
, Cancel as Integer )
)

there isn't one in VB'2002 or '2003,

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vxconChangesToFormObjectInVisualBasicNET.asp

but guess what?  Take a look at what's coming in VB'2005:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/VBUpgrade.asp

Regards,
    Phill  W.
Author
29 Jun 2005 12:32 PM
Herfried K. Wagner [MVP]
"Lespaul36" <lespau***@none.net> schrieb:
>I want to make a unloadmode like what was in vb6.  I have seen some code
>using the stack, but I would prefer to use window messages.  I am trying to
>find the calls used for the tast manager shutting down the window.

See:

<URL:http://web.archive.org/web/20041113033054/http://fawcette.com/archives/premier/mgznarch/vbpj/2001/11nov01/qa0111/qa0111.asp>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>