Jump to content
Sign in to follow this  
Goblin

[How]Control options in MsgBox.

Recommended Posts

Goblin

hey, i want to know how to control option of msgbox, Example:-

i made a msgbox it's controls are "Yes, No, Cancel" if the user pressed "Yes" a message box will appear and say "You Chose yes" and if the user pressed "No" a message box will appear and say "You Chose no" etc.

That's all


Share this post


Link to post
Share on other sites
oMBRa

$Msg = MsgBox(3, 'Press', 'Press yes or no')

If $Msg = 6 Then
    MsgBox(48, '', 'You pressed yes!')
ElseIf $Msg = 7 Then
    MsgBox(48, '', 'You pressed no!')
EndIf

Edited by oMBra

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×