[HELP] MsgBoxStyle.YesNo

Posts 1–4 of 4 · Page 1 of 1
[HELP] MsgBoxStyle.YesNo
i've done it once before, but cant remember how


how do i make it, if the user clicks no then it will just close the MsgBox

and if they click yes then

it will (ex) goto form2
Code:
Dim Answer As Integer = MessageBox.Show("Yes or No?", "", MessageBoxButtons.YesNo)

        If Answer = 6 Then ' Yes is pressed
            'Do something
        Else ' No is pressed
            'Do something
        End If
[php]
If MessageBox.Show("Text", "Title", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk) = Windows.Forms.DialogResult.Yes Then

'do something'

Else

'do something'

End If
[/php]

Works better.
hmmm.... I've never used that. My method has always worked for me but I'll try that.
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us