How has input validation been improved in Visual Basic .NET?
Requesting input from a user in your application always involves the risk of a user entering invalid information, so you must have input validation in your code to alert the user. In Visual Basic 6.0, the most common way to perform this task was to use the MsgBox function. The biggest drawback with using a message box to display an error is that in some occasions, a text message is insufficient. For example, if a form has many input fields and there are several errors made, chances are that the user will not remember all the errors after the message box is closed. This means that the user will have to be reminded of the errors more than once to correct the problems with the input. In Visual Basic .NET, the ErrorProvider control will display an icon to let the user know exactly what and where the problem is. When the mouse is placed over the error notification icon, a ToolTip will be displayed to further assist with the error resolution procedure.