Re: Help me understand

Tech-Archive recommends: Fix windows errors by optimizing your registry



Bob,


> in form_queryunload:
> if necessary, test to see if the app can quit and/or prompt the user to
> save
> changes/etc. The UnloadMode paramater will tell you why the form is
> trying
> to unload. Use the Cancel parameter if necessary to stop it.


Is that why the event is named such? We are "qeurying" whether it is proper
to unload at this moment.

This name has been kind of a head scratcher for me since I started
killing/maiming the VB language.

Dale


.



Relevant Pages

  • Re: queryUnload and multiple forms
    ... > a more eloquent solution than the ones I'm coming up with. ... > I have a program that I am catching the unload requests in the ... > the login form they get prompted twice to see if they are sure. ... I'm not bringing up the prompt if its called from code ...
    (microsoft.public.vb.general.discussion)
  • Re: simple form float on top - or timer in task bar
    ... In its Unload event, write whatever code is necessary to unload ... a window by clicking the Close button and if that window is the main ... then you should prompt to save that data and then let the program close. ... exceptions because if they're not running, the user is at a security risk. ...
    (microsoft.public.vb.com)
  • Re: simple form float on top - or timer in task bar
    ... You can move your code to the Unload event and cancel the Unload using ... Private Sub Form_Unload ... won't prompt if the user used the taskmanager or computer is shutting down. ... If UnloadMode = vbFormControlMenu Or UnloadMode = vbFormCode Then ...
    (microsoft.public.vb.com)