Computer Science, asked by yugalpatil, 1 year ago

difference between msgbox() and errorprovider control

Answers

Answered by saivivek16
14
Hey

Here is your answer ,

There is no big difference in both  MsgBox() and error provider in vb. net.  In case of vb. net either use one parameter or three parameters like prompt, Buttons and title whereas for in msg box you can add additional parameter thats 1.  

Answered by roopa2000
2

Answer:

In vb. net, there isn't much of a distinction between MsgBox() and error provider. In VB.NET, you may use one or three parameters, such as prompt, buttons, and title, whereas, in the msg box, you can add an extra parameter, which is 1.

Explanation:

A message box is a modal dialogue box that displays the system icon, buttons and a brief application message like error information or status. Furthermore, it returns an integer number that indicates which button the user has pressed. The error provider control, on the other hand, is used to display errors connected to data entering or to display any desired symbol with accompanying tool tip in response to any event being monitored.

Msbox is a compatibility mechanism; it is a simple approach to converting outdated code.

It's Okaylish (a sublevel where awful and okay are forms), but in the long term, you're better off using a message box.

Visual Basic functions are available in Msgbox.

Control of the error provider:

The user is informed by the error provider that something is incorrect with the window.

For example, when an invalid expression is typed, a warning icon, wrong icon, or a tick icon, depending on the data input, a text box appears so that the user can understand what he entered is incorrect data.

Similar questions