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

Building an Inherited Control

Now let’s get down to the business of building our control. In this chapter, we’re going to follow the first approach I talked about earlier, that is, building a control that inherits from an existing .NET control. For example, let’s say you want to build a specialized TextBox validator control that will ensure that the user correctly enters various types of data. For example, you might want this specialized text box control to contain valid phone numbers, e-mail addresses, URLs, Zip Codes, and Social Security numbers. Since this sort of validation is often required, it definitely makes more sense to build the intelligence directly into a custom control that is inherited from the text box control rather than rewrite ...

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