How can I capture an Escape Key Press for that?VB Code:
Private Sub Command1_Click() MsgBox MsgBox("Sorry! No choices for this!", vbOKOnly, "Tough Luck") End Sub
How can I capture an Escape Key Press for that?VB Code:
Private Sub Command1_Click() MsgBox MsgBox("Sorry! No choices for this!", vbOKOnly, "Tough Luck") End Sub
y would you want 2?
it returns the same value 1
if you want you could use vbyesno and have an option for the user.
if you really want to find out if they close the window then you can eather subclass the window or create ur own version of Msgbox
The 'Esc' or 'x' or 'Ok' will all return the same value of 1.
Use the vbYesNoCancel messagebox.
This way if the user clicks on the x or cancels or esc you can detect it
with vbCancel const. equalling 2.
Subclassing seems overkill. Custom MsgBox is what I plan to use.
Thanx anyways
Cheers
Regards
KayJay