473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

UnloadMode

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?
Nov 21 '05 #1
3 2066
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
Nov 21 '05 #2
"Lespaul36" <le*******@none.net> wrote in message
news:OA*************@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/de...alBasicNET.asp

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

http://msdn.microsoft.com/library/de.../VBUpgrade.asp

Regards,
Phill W.
Nov 21 '05 #3
"Lespaul36" <le*******@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/>

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Harry J. Smith | last post by:
I have written a Visual Basic program that does a long calculation and writes the results to disk as it runs. If I click the Close button the window closes but the program keeps running. How can I...
3
by: Nicolas Poirier | last post by:
I successfully made a system tray application. When I do shut down the computer, how does the computer can instruct my application to shut down? For the moment, if I don't quit my application,...
7
by: alan | last post by:
Hello, When the user try the close the application (click the top right side button "X"), I would like to do a checking first. If the checking return false, prevent the application terminate....
4
by: Tom Vukovich | last post by:
Hi All, I have an application that I am porting from VB6 to VBNet and in vb6 i can detect the unloadMode. DotNet doesn't support this but I need the functionality. I understand the code should be in...
10
by: Bande | last post by:
There is a program in VB , in which, there is a Form_QueryUnload( Cancel as Integer, UnloadMode as Integer) which would be called when the form is being closed. The UnloadMode is used to find...
5
by: Mike Labosh | last post by:
In VB 6, the Form_QueryUnload event had an UnloadMode parameter that let me find out *why* a form is unloading, and then conditionally cancel the event. In VB.NET, the Closing event passes a...
1
by: Helene Day | last post by:
In VB6, I used to have something like: Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) If UnloadMode = vbFormControlMenu Then '''' other logic here...etc... Cancel =...
0
by: YYZ | last post by:
Using .Net 2003. I have a main form for my application, but it pops up a dialog on top of it to get other information from the user. I want ot know how the dialog is being closed...meaning, did...
3
by: leocwh | last post by:
Dear all, I would like to know how to run the execuatable before windows shutting down. Here is my simple code: Private Sub Command1_Click() Shell "C:\abc.bat", vbNormalFocus End Sub ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.