Adding Controls to a Windows Form

You can place controls on the surface of any container object. Container objects include Windows forms and panels and group box controls.

You can add controls to a form either programmatically or by using the Windows Forms Designer. Although the Windows Forms Designer provides an easy-to-use interface for adding controls to a form, you are likely to need to do some work in the code view to make programs more functional.

Adding Controls by Using the Windows Forms Designer

Add controls to a Windows form.

The Windows Forms Designer provides a toolbox that contains a variety of commonly used controls. You can drag and drop controls from the toolbox to a form and arrange them as required. You can activate the toolbox ...

Get MCAD/MCSD.NET Training Guide (Exam 70-316): Developing and Implementing Windows®-Based Applications with Microsoft® Visual C#™ .NET and Microsoft® Visual Studio® .NET 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.