Using Message Box

lgnet

New member
Joined
Jul 7, 2006
Messages
2
Programming Experience
Beginner
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
System.Windows.Forms.MessageBox.Show("Hello", "Title", _
MessageBoxButtons.YesNo, _
MessageBoxIcon.Information, _
MessageBoxDefaultButton.Button1)
End Sub


In the above code, what is meant by "MessageBoxDefaultButton.Button1"?
 
I guess it's the default active button, useful when you use keyboard to press enter key. If you just press enter this button will click, without need to change (tab) to other button.
 
Back
Top