How To Create An Own Error Message In VB.net?

Asked By 0 points N/A Posted on -
qa-featured

Hello everyone, I want to use the function to how an error message in my VB program. Please provide me some points to create an own error message and that professional. Thanks in advance for the help.

SHARE
Answered By 0 points N/A #300764

How To Create An Own Error Message In VB.net?

qa-featured

In VB we use messagebox.show to display the message. To convert it into error message and to look it more professional you can use some of the points below. You can provide the title and the types of the button you want to be present on your message box.

MessageBox.Show( “The username or password you entered is incorrect”, _
“Login Error”, MessageBoxButtons.OKCancel, MessageBoxIcon.Stop)

 

 

Vb.net also supports error message with an Exclamation mark, question mark, stop, warning and much more. You can also customize the buttons with the option of YesNoCancel, YesNo and AbortCancel and much more.

Related Questions