O'Reilly logo

Developing and Implementing Windows®-Based Applications with Visual C#™ .NET and Visual Studio® .NET Exam Cram™ 2 (Exam 70-316) by Priti Kalani, Amit Kalani, Kalani Kirk Hausman

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

Adding Controls to Forms

Within the Visual Studio .NET Forms Designer, controls can be placed on the surface of any container object, such as Windows Forms, or controls such as Panel, GroupBox, or TabControl. You also can add controls to a form programmatically.

When creating controls programmatically, you must remember to associate them with a parent container control. If you don't do this, controls will be created but not displayed.

Adding Controls with the Windows Forms Designer

Within the Forms Designer interface, you can drag and drop controls from the toolbox or using the View menu. Figure 2.10 shows this toolbox.

Figure 2.10. Controls toolbox. ...

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