Creating User Controls
C# gives you the capability to build controls for both Windows and Web applications. We're going to do that in this chapter, starting with Windows custom controls, called user controls. Later in the chapter we'll see how to create custom controls for Web applications, called Web user controls.
Using Visual Studio .NET, you can create your own user controls for use in Windows forms. For example, you might want such a control to display a day planner or a mortgage amortization calculator. Building reusable user controls lets you avoid the tedium of rebuilding your day planner or mortgage calculator in multiple applications—you just need to drop your user control onto the appropriate form.
At design time, user controls appear ...