Setting Properties of Controls
Add controls to a Windows form.
Set properties on controls.
Chapter 1 discussed how to work with properties of a Form object. You learned how to manipulate these properties through both the Properties window at design time and a program at runtime. The same concept carries over to Windows forms controls. Recall from the section “Using the System.Windows.Forms.Form Class” in Chapter 1 that a form is also a control that derives from the Control class.
Although this section discusses the properties of controls, some of the properties and their behaviors are similar to those of forms. Controls may also have additional properties, depending on their specific functionality.
To set a property for a control by using the ...
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.