Taken directly out of the help-file for VB :-<
Sub MDIForm_QueryUnload (Cancel As Integer, UnloadMode As Integer)
Dim Msg ' Declare variable.
' Set the message text.
Msg = "Do you really want to exit the application?"
' If user clicks the 'No' button, stop QueryUnload.
If MsgBox(Msg, 36, Me.Caption) = 7 Then Cancel = True
End Sub
Dag.
___________________________
Quote:
> Hi all,
> VB 3.0 Pro
> How do I stop a user from quitting out of windows while my App
> is still running. (Like the DOS Prompt does)?
> Thanks for any help anyone can give me.
> Steve
> --
> GameNet Systems.
> Steve Carrington.