Hello,
Is there any way to insure that
the msgbox appears on the top
of all other forms?
Printable View
Hello,
Is there any way to insure that
the msgbox appears on the top
of all other forms?
Set the Msgbox as a SystemModal.
Code:MsgBox "No way to escape!", vbSystemModal
or if you just want it to be ontop ofall of your program forms (not other programs)
Code:MsgBox "TADA!", vbModal
-Lumin
Ok thanks...
But how can I have it be a
vbYesNo button and on top?
Code:Private Sub Command1_Click()
If vbYes = MsgBox("Do you want to escape?", vbSystemModal + vbYesNo) Then
MsgBox "Free"
Else
MsgBox "Trapped here forever!"
End If
End Sub