About UserControls
We will create our data control by subclassing a UserControl. This is a base class from which all visual controls derive. The UserControl class provides a visual drawing space upon which other controls may be placed. It also provides many of the properties and methods you would expect any control to have. In some ways, it is similar to a form. The difference is that the control must be hosted. That is, it must reside on a container. This container may be a form, or another UserControl.
To cover all of the bases, we will be creating what we call a compound control, or a control made up of a group of existing controls. There is another type of control called a painted control. In this type, the control author is responsible ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access