System.Windows.Forms.Form: Property Members

The properties of System.Windows.Forms.Form are listed below. For a list of all members, see the Form Members list.

See Also: Inherited members from System.Windows.Forms.ContainerControl

Public Properties

AcceptButtonSystem.Windows.Forms.IButtonControl.

Gets or sets the button on the form that is clicked when the user presses the ENTER key.

[read-only]
static
ActiveFormSystem.Windows.Forms.Form.

Gets the currently active form for this application.

[read-only]
ActiveMdiChildSystem.Windows.Forms.Form.

Gets the currently active multiple-document interface (MDI) child window.

AllowTransparencybool.

Gets or sets a value indicating whether the opacity of the form can be adjusted.

AutoScalebool.

Gets or sets a value indicating whether the form adjusts its size to fit the height of the font used on the form and scales its controls.

AutoScaleBaseSizeSystem.Drawing.Size.

Gets or sets the base size used for autoscaling of the form.

override
AutoScrollbool.

Gets or sets a value indicating whether the form enables autoscrolling.

override
AutoSizebool.

Resize the form according to the setting of Form.AutoSizeMode.

AutoSizeModeSystem.Windows.Forms.AutoSizeMode.

Gets or sets the mode by which the form automatically resizes itself.

override
AutoValidateSystem.Windows.Forms.AutoValidate. Documentation for this section has not yet been entered.
override
BackColorSystem.Drawing.Color. Documentation for this section has not yet been entered.
CancelButtonSystem.Windows.Forms.IButtonControl.

Gets or sets the button control that is clicked when the user presses the ESC key.

ClientSizeSystem.Drawing.Size.

Gets or sets the size of the client area of the form.

ControlBoxbool.

Gets or sets a value indicating whether a control box is displayed in the caption bar of the form.

DesktopBoundsSystem.Drawing.Rectangle.

Gets or sets the size and location of the form on the Windows desktop.

DesktopLocationSystem.Drawing.Point.

Gets or sets the location of the form on the Windows desktop.

DialogResultSystem.Windows.Forms.DialogResult.

Gets or sets the dialog result for the form.

FormBorderStyleSystem.Windows.Forms.FormBorderStyle.

Gets or sets the border style of the form.

HelpButtonbool.

Gets or sets a value indicating whether a Help button should be displayed in the caption box of the form.

IconSystem.Drawing.Icon.

Gets or sets the icon for the form.

[read-only]
IsMdiChildbool.

Gets a value indicating whether the form is a multiple-document interface (MDI) child form.

IsMdiContainerbool.

Gets or sets a value indicating whether the form is a container for multiple-document interface (MDI) child forms.

[read-only]
IsRestrictedWindowbool.

Gets a value indicating whether the form can use all windows and user input events without restriction.

KeyPreviewbool.

Gets or sets a value indicating whether the form will receive key events before the event is passed to the control that has focus.

LocationSystem.Drawing.Point.

Gets or sets the System.Drawing.Point that represents the upper-left corner of the System.Windows.Forms.Form in screen coordinates.

MainMenuStripSystem.Windows.Forms.MenuStrip.

Gets or sets the primary menu container for the form.

MarginSystem.Windows.Forms.Padding.

Gets or sets the space between controls.

MaximizeBoxbool.

Gets or sets a value indicating whether the Maximize button is displayed in the caption bar of the form.

override
MaximumSizeSystem.Drawing.Size.

Gets the maximum size the form can be resized to.

[read-only]
MdiChildrenSystem.Windows.Forms.Form[].

Gets an array of forms that represent the multiple-document interface (MDI) child forms that are parented to this form.

MdiParentSystem.Windows.Forms.Form.

Gets or sets the current multiple-document interface (MDI) parent form of this form.

MenuSystem.Windows.Forms.MainMenu.

Gets or sets the System.Windows.Forms.MainMenu that is displayed in the form.

[read-only]
MergedMenuSystem.Windows.Forms.MainMenu.

Gets the merged menu for the form.

MinimizeBoxbool.

Gets or sets a value indicating whether the Minimize button is displayed in the caption bar of the form.

override
MinimumSizeSystem.Drawing.Size.

Gets or sets the minimum size the form can be resized to.

[read-only]
Modalbool.

Gets a value indicating whether this form is displayed modally.

Opacitydouble.

Gets or sets the opacity level of the form.

[read-only]
OwnedFormsSystem.Windows.Forms.Form[].

Gets an array of System.Windows.Forms.Form objects that represent all forms that are owned by this form.

OwnerSystem.Windows.Forms.Form.

Gets or sets the form that owns this form.

[read-only]
RestoreBoundsSystem.Drawing.Rectangle.

Gets the location and size of the form in its normal window state.

RightToLeftLayoutbool.

Gets or sets a value indicating whether right-to-left mirror placement is turned on.

ShowIconbool.

Gets or sets a value indicating whether an icon is displayed in the caption bar of the form.

ShowInTaskbarbool.

Gets or sets a value indicating whether the form is displayed in the Windows taskbar.

SizeSystem.Drawing.Size.

Gets or sets the size of the form.

SizeGripStyleSystem.Windows.Forms.SizeGripStyle.

Gets or sets the style of the size grip to display in the lower-right corner of the form.

StartPositionSystem.Windows.Forms.FormStartPosition.

Gets or sets the starting position of the form at run time.

TabIndexint.

Gets or sets the tab order of the control within its container.

TabStopbool.

Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.

override
Textstring. Documentation for this section has not yet been entered.
TopLevelbool.

Gets or sets a value indicating whether to display the form as a top-level window.

TopMostbool.

Gets or sets a value indicating whether the form should be displayed as a topmost form.

TransparencyKeySystem.Drawing.Color.

Gets or sets the color that will represent transparent areas of the form.

WindowStateSystem.Windows.Forms.FormWindowState.

Gets or sets a value that indicates whether form is minimized, maximized, or normal.

Protected Properties

[read-only]
override
CreateParamsSystem.Windows.Forms.CreateParams. Documentation for this section has not yet been entered.
[read-only]
override
DefaultImeModeSystem.Windows.Forms.ImeMode.

Gets the default Input Method Editor (IME) mode supported by the control.

[read-only]
override
DefaultSizeSystem.Drawing.Size. Documentation for this section has not yet been entered.
MaximizedBoundsSystem.Drawing.Rectangle.

Gets and sets the size of the form when it is maximized.

[read-only]
ShowWithoutActivationbool.

Gets a value indicating whether the window will be activated when it is shown.