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
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
Assembly Programmer
Cryptonic (07-10-2010),GameTrainerMaker (06-23-2010)
[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.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
hmmm.... I've never used that. My method has always worked for me but I'll try that.
Assembly Programmer