Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
visual basic message box title?
not a msgbox. a messagebox. messagebox.show("blabla") & variable & "blabla"...etc
i need to add a title to it
2 Answers
- GardnerLv 78 years agoFavorite Answer
Private Sub Form1_FormClosing( _
ByVal sender As System.Object, _
ByVal e As System.Windows.Forms.FormClosingEventArgs) _
Handles MyBase.FormClosing
Dim message As String = _
"Are you sure that you would like to close the form?"
Dim caption As String = "Form Closing"
Dim result = MessageBox.Show(message, caption, _
MessageBoxButtons.YesNo, _
MessageBoxIcon.Question)
' If the no button was pressed ...
If (result = DialogResult.No) Then
' cancel the closure of the form.
e.Cancel = True
End If
End Sub
Source(s): VB.NET Programmer - 5 years ago
at the same time as coding the button in question, upload a button on your form, double click this is certain you code it as a click (might want to assert "inspite of you reported as your msgbox"_click" interior the first line") upload this code: MsgBox("what ever you opt for it to declare") hello presto savour, choose any help PM me