O'Reilly logo

Developing Microsoft® .NET Controls with Microsoft Visual Basic® .NET by John Connell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Validating User Input

One of the banes of programming is validating user input. Designing and validating an effective user-machine interface is one of the most difficult tasks in programming. Prior to .NET, you had to write acres of code to perform simple validation. Luckily, as with many other areas of programming, .NET makes this task trivial.

Let’s say you have a simple security form that takes a user’s e-mail address as an ID and an associated valid password. It’s common for users to mistype their e-mail address. So you want to ensure that the e-mail address is in the correct format. Also, you want to be sure that the password is between 5 and 8 characters long. While these validations are relatively simple, before .NET, they would have ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required