Can I change a message box button to whatever I want? if so whats the command. When I do a "Messageboxbuttons." It only gives me the basic choices. can I use whatever text I want? Thank you
YOu can create your own form and use the showdialog method of the form to get the same effect. Then you can add any buttons you want
Here are the click events
Private Sub Yes_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Yes.Click
Me.DialogResult = DialogResult.Yes
Me.Close()
End Sub
Private Sub No_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles No.Click
Me.DialogResult = DialogResult.No
Me.Close()
End Sub
Private Sub Retry_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Retry.Click
Me.DialogResult = DialogResult.Retry
Me.Close()
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.