Implementing a Custom Windows User Control
A useful control on which to build is the user control. The user control can be designed, like a Windows form, which makes it an ideal candidate for designing business controls comprised of several constituent controls. The key is to flatten the properties of the constituent control, making the user control seem like a single control with several properties rather than a composite control.
The control I defined as the example for this section is a custom user control named AddressUserControl, which contains several constituent controls common to U.S. addresses (see Figure 9.8). I defined AddressUserControl as part of a class library and added the control to the Toolbox (see the earlier section Adding ...
Get Visual Basic® .NET Power Coding now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.