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.

Chapter 8. Building and Licensing a Custom Control

We now come to the third and most complex (but also most flexible) approach to building a Windows Forms control, that of building a custom control. As you saw in Chapter 6 when we inherited a TextBox control, the easiest way to build a control is simply to inherit an existing control and add special functionality to it. The second method is to build a user control that contains several preexisting controls, as we did with the encryption control in Chapter 7. With the .NET Framework, control authors are no longer limited to designing user controls that act as a collection of preexisting controls. Now it is within the realm of mere mortals (and not relegated only to C++ gurus) to design controls ...

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