Export (0) Print
Expand All

Properties in Windows Forms Controls

A Windows Forms control inherits many properties form the base class System.Windows.Forms.Control. These include properties such as Font, ForeColor, BackColor, Bounds, ClientRectangle, DisplayRectangle, Enabled, Focused, Height, Width, Visible, AutoSize, and many others. For details about inherited properties, see System.Windows.Forms.Control.

You can override inherited properties in your control as well as define new properties.

In This Section

Defining a Property in Windows Forms Controls

Shows how to implement a property for a custom control or component and shows how to integrate the property into the design environment.

Defining Default Values with the ShouldSerialize and Reset Methods

Shows how to define default property values for a custom control or component.

Property-Changed Events

Describes how to enable property-change notifications when a property value changes.

How to: Expose Properties of Constituent Controls

Shows how to expose properties of constituent controls in a custom composite control.

Method Implementation in Custom Controls

Describes how to implement methods in custom controls and components.

Reference

UserControl

Documents the base class for implementing composite controls.

TypeConverterAttribute

Documents the attribute that specifies the TypeConverter to use for a custom property type.

EditorAttribute

Documents the attribute that specifies the UITypeEditor to use for a custom property.

Related Sections

Attributes in Windows Forms Controls

Describes the attributes you can apply to properties or other members of your custom controls and components.

Design-Time Attributes for Components

Lists metadata attributes to apply to components and controls so that they are displayed correctly at design time in visual designers.

Extending Design-Time Support

Describes how to implement classes such as editors and designers that provide design-time support.

Community Additions

ADD
Show:
© 2014 Microsoft