Appendix A. Useful Control Properties, Methods, and Events
A control interacts with a program or the user through properties, methods, and events. Although each type of control provides different features, they are all derived from the Control
class. This class provides many useful properties, methods, and events that other controls inherit, if they don't take special action to override them. The following sections describe some of the most useful of these inherited features.
You can learn more about the
Control
class atmsdn2.microsoft.com/library/system.windows.forms.control.aspx
.
Properties
The following table lists properties implemented by the Control
class. All controls that inherit from this class inherit these properties unless they override the Control
class's behavior.
Property | Purpose |
---|---|
| Determines whether the control allows drag-and-drop operations. |
| Determines which of the control's edges are anchored to the edges of the control's container. |
| Determines whether the control automatically resizes to fit its contents. |
| Determines the control's background color. |
| Determines the control's background image. |
| Determines how the control's background image is used to fill the control. This can be |
| Returns the distance between the top edge of the control's container and the bottom edge of the control. This is read-only. Modify the |
|
Get Visual Basic® 2008 Programmer's Reference 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.