Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. khizerharoon

    Detect whether VB app is closed by user or by the system

    Sure why not, here is the code 'declare API for stop user for closing the application Public Declare Function AbortSystemShutdown Lib "advapi32.dll" Alias "AbortSystemShutdownA" (ByVal lpMachineName As String) As Long Private Sub MDIForm_QueryUnload(Cancel As Integer...
  2. khizerharoon

    Detect whether VB app is closed by user or by the system

    WEll first of all i am not making a virus :P I am working on a VB app which saves info in registery and files when it is closed. Therefore when it is improperly shutdown like "End Tasked" forced by the user, the program next time starting is a nightmare. Anyways I figured out the...
  3. khizerharoon

    Detect whether VB app is closed by user or by the system

    I need to check whether the app is being closed by the system or by the user itself. if the user is shutting down the windows, he would cause the application to abort normally which I want to avoid. Basically i wanna avoid the user to NOT to press the "End Task" button. I can manage...

Part and Inventory Search

Back
Top