Hello, Is there any way to insure that the msgbox appears on the top of all other forms?
[email protected] http://www.StockHawk.net Stock Blog http://www.warpedai.com Day Trading Software
Set the Msgbox as a SystemModal. Code: MsgBox "No way to escape!", vbSystemModal
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
MsgBox "TADA!", vbModal
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
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
Forum Rules