O'Reilly logo

MCAD/MCSD.NET Training Guide (Exam 70-316): Developing and Implementing Windows®-Based Applications with Microsoft® Visual C#™ .NET and Microsoft® Visual Studio® .NET by MCSD Amit Kalani - MCAD

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

Common Windows Forms Controls

Add controls to a Windows form.

  • Set properties on controls.

  • Write code to handle control events and add the code to a control.

The Windows Forms library includes an array of commonly used GUI elements that you can assemble on a Windows form to create Windows applications. These GUI elements (or Windows forms controls) are mostly derived from the System.Windows.Forms.Control class. By virtue of this inheritance, these controls share a number of common properties, methods, and events; in addition, these controls may also have their own specific sets of properties, methods, and events that give them distinct behaviors. Figure 2.19 shows a hierarchy of important classes in the Control class.

Figure 2.19. System.Windows.Forms.Control ...

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