MessageBox result

mqdias

New member
Joined
Dec 20, 2007
Messages
2
Programming Experience
Beginner
Hi,

Previously, most of us used for example:

VB.NET:
MsgBox("Are you sure?", MsgBoxStyle.YesNo)
If MsgBoxResult.Yes = True Then
     Call Form1_Load()
End If

Now in VB.Net we use:
VB.NET:
MessageBox.Show("Are you sure?",MessageBoxButtons.YesNo, MessageBoxIcon.Question)

And, what about the MsgBoxResult?
Using MessageBox, i don't know how to use the result (yes or no)...

Please help me...

thanks
 
Back
Top