Examples


Asterisk


Error


Exclamation


Hand


Information


Question


Stop


Warning


Asking a Question - Yes or No ?

Call Windows.Forms.MessageBox.Show("This is a message", 
                                          "Message Box Caption", _
                                          Windows.Forms.MessageBoxButtons.OkOnly Or _
                                          Windows.Forms.MessageBoxButtons.Information)


Asking a Question - Yes or No ?

Dim objreturn As System.Windows.Forms.DialogResult 
objreturn = Windows.Forms.MessageBox.Show("This is a question ?",
                                          "Message Box Caption", _
                                          Windows.Forms.MessageBoxButtons.YesNo

If objreturn = Windows.Forms.DialogResult.No Then
End If

The result is passed back as a DialogResult enumerated value



© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited TopPrevNext