Preventing a form from unloading

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vdraceil
    New Member
    • Jul 2007
    • 236

    Preventing a form from unloading

    Hi,i use VB6.0..is it possible to prevent a form from unloading ever?
    I know to set cancel=true in query unload event of the form..but this applies only to limited cases.
    If my exe is closed from the task manager-"Applicatio ns" tab,i can detect it and prevent it from unloading,but if it is closed from the task manager-"Processes" tab,the form will be closed even without passing through the terminate,query unload and unload events...
    I'm designing a exe that will run in the background and i want the user to end it from perfectly within the form-i.e.,by clicking a command button in the form..this is because i've got to save data in the last minute(just before the form unloads itself)
Working...