Appendix J. Form Objects
This appendix describes the most useful properties, methods, and events provided by the Windows Form class.
The Form class inherits indirectly from the Control class (Control is the Form class's "great-grandparent"), so in many ways, a form is just another type of control. Except where overridden, Form inherits the properties, methods, and events defined by the Control class. Chapter 9, "Using Windows Forms Controls," discusses some of the more useful properties, methods, and events provided by the Control class and most of those apply to the Form class as well. Appendix A, "Useful Control Properties, Methods, and Events," summarizes the Control class's most useful properties.
Properties
The following table describes some of the most useful Form properties.
Property | Description |
|---|---|
| Determines the button that clicks when the user presses the Enter key. This button basically gives the form a default action. Most forms used as dialog boxes should have an Accept button and a Cancel button (see the |
| Gets the form's currently active control. |
| Gets the application's currently active form. If an MDI child form is active, this returns the active form's MDI parent. |
| Gets the MDI parent form's currently active MDI child form. |
| Determines whether the form processes ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access