Sign in to follow this  
Followers 0
Goblin

[How]Control options in MsgBox.

2 posts in this topic

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

#2 ·  Posted (edited)

$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  
Followers 0