General information
Category:
Coding, syntax & commands
Hi, it's me again, I sent you a response, still dun know if it where useful, so I am sending you an snipped of code, that is, without a doubt, more useful.
'Add a single executable form and add this code to the unload event of it
'it's quite simple, but very effective, the constant value that I use
'for set the "no" button as default is 256, that number makes it all!!!
'Hope this can help you!!!!., I can send you the rest of values
'for 2 or 3 buttons your pal => Alvison Hunter Arnuero
Option Explicit
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If MsgBox("It is seems like ya wanna leave this section:" & _
Chr(13) & "Do ya Really wanna close this Window?", _
vbYesNo + vbQuestion + 256, "Hey man? what is wrong with ya?") = vbYes Then
Unload Me
Else
Cancel = True
Exit Sub
End If
End Sub
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only