System.Windows.Forms.Form: Method Members

The methods 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 Methods

Activate()

Activates the form and gives it focus.

AddOwnedForm(System.Windows.Forms.Form)

Adds an owned form to this form.

Close()

Closes the form.

static
GetAutoScaleSize(System.Drawing.Font) : System.Drawing.SizeF

Gets the size when autoscaling the form based on a specified font.

LayoutMdi(System.Windows.Forms.MdiLayout)

Arranges the multiple-document interface (MDI) child forms within the MDI parent form.

RemoveOwnedForm(System.Windows.Forms.Form)

Removes an owned form from this form.

SetDesktopBounds(int, int, int, int)

Sets the bounds of the form in desktop coordinates.

SetDesktopLocation(int, int)

Sets the location of the form in desktop coordinates.

Show(System.Windows.Forms.IWin32Window)

Shows the form with the specified owner to the user.

ShowDialog() : System.Windows.Forms.DialogResult

Shows the form as a modal dialog box.

ShowDialog(System.Windows.Forms.IWin32Window) : System.Windows.Forms.DialogResult

Shows the form as a modal dialog box with the specified owner.

override
ToString() : string

Gets a string representing the current instance of the form.

override
ValidateChildren() : bool
Documentation for this section has not yet been entered.
override
ValidateChildren(System.Windows.Forms.ValidationConstraints) : bool
Documentation for this section has not yet been entered.

Protected Methods

ActivateMdiChild(System.Windows.Forms.Form)

Activates the MDI child of a form.

override
AdjustFormScrollbars(bool)

Adjusts the scroll bars on the container based on the current control positions and the control currently selected.

ApplyAutoScaling()

Resizes the form according to the current value of the Form.AutoScaleBaseSize property and the size of the current font.

CenterToParent()

Centers the position of the form within the bounds of the parent form.

CenterToScreen()

Centers the form on the current screen.

override
CreateControlsInstance() : System.Windows.Forms.Control.ControlCollection
Documentation for this section has not yet been entered.
override
CreateHandle()

Creates the handle for the form. If a derived class overrides this function, it must call the base implementation.

override
DefWndProc(ref System.Windows.Forms.Message)
Documentation for this section has not yet been entered.
override
Dispose(bool)

Disposes of the resources (other than memory) used by the System.Windows.Forms.Form.

override
GetScaledBounds(System.Drawing.Rectangle, System.Drawing.SizeF, System.Windows.Forms.BoundsSpecified) : System.Drawing.Rectangle
Documentation for this section has not yet been entered.
OnActivated(EventArgs)

Raises the Form.Activated event.

override
OnBackgroundImageChanged(EventArgs)

Raises the Control.BackgroundImageChanged event.

override
OnBackgroundImageLayoutChanged(EventArgs)

Raises the Control.BackgroundImageLayoutChanged event.

OnClosed(EventArgs)

Raises the Form.Closed event.

OnClosing(System.ComponentModel.CancelEventArgs)

Raises the Form.Closing event.

override
OnCreateControl()

Raises the CreateControl event.

OnDeactivate(EventArgs)

Raises the Form.Deactivate event.

override
OnEnabledChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnEnter(EventArgs)

Raises the Control.Enter event.

override
OnFontChanged(EventArgs)
Documentation for this section has not yet been entered.
OnFormClosed(System.Windows.Forms.FormClosedEventArgs)

Raises the Form.FormClosed event.

OnFormClosing(System.Windows.Forms.FormClosingEventArgs)

Raises the Form.FormClosing event.

override
OnHandleCreated(EventArgs)
Documentation for this section has not yet been entered.
override
OnHandleDestroyed(EventArgs)
Documentation for this section has not yet been entered.
OnHelpButtonClicked(System.ComponentModel.CancelEventArgs)

Raises the Form.HelpButtonClicked event.

OnInputLanguageChanged(System.Windows.Forms.InputLanguageChangedEventArgs)

Raises the Form.InputLanguageChanged event.

OnInputLanguageChanging(System.Windows.Forms.InputLanguageChangingEventArgs)

Raises the Form.InputLanguageChanging event.

override
OnLayout(System.Windows.Forms.LayoutEventArgs)

Raises the Control.Layout event.

OnLoad(EventArgs)

Raises the Form.Load event.

OnMaximizedBoundsChanged(EventArgs)

Raises the Form.MaximizedBoundsChanged event.

OnMaximumSizeChanged(EventArgs)

Raises the Form.MaximumSizeChanged event.

OnMdiChildActivate(EventArgs)

Raises the Form.MdiChildActivate event.

OnMenuComplete(EventArgs)

Raises the Form.MenuComplete event.

OnMenuStart(EventArgs)

Raises the Form.MenuStart event.

OnMinimumSizeChanged(EventArgs)

Raises the Form.MinimumSizeChanged event.

override
OnPaint(System.Windows.Forms.PaintEventArgs)
Documentation for this section has not yet been entered.
override
OnResize(EventArgs)
Documentation for this section has not yet been entered.
OnResizeBegin(EventArgs)

Raises the Form.ResizeBegin event.

OnResizeEnd(EventArgs)

Raises the Form.ResizeEnd event.

OnRightToLeftLayoutChanged(EventArgs)

Raises the Form.RightToLeftLayoutChanged event.

OnShown(EventArgs)

Raises the Form.Shown event.

override
OnStyleChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnTextChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnVisibleChanged(EventArgs)

Raises the Control.VisibleChanged event.

override
ProcessCmdKey(ref System.Windows.Forms.Message, System.Windows.Forms.Keys) : bool
Documentation for this section has not yet been entered.
override
ProcessDialogChar(char) : bool

Processes a dialog character.

override
ProcessDialogKey(System.Windows.Forms.Keys) : bool

Processes a dialog box key.

override
ProcessKeyPreview(ref System.Windows.Forms.Message) : bool
Documentation for this section has not yet been entered.
override
ProcessMnemonic(char) : bool

Processes a mnemonic character.

override
ProcessTabKey(bool) : bool
Documentation for this section has not yet been entered.
override
ScaleControl(System.Drawing.SizeF, System.Windows.Forms.BoundsSpecified)

Scales the location, size, padding, and margin of a control.

override
ScaleCore(float, float)

Performs scaling of the form.

override
Select(bool, bool)

Selects this form, and optionally selects the next or previous control.

override
SetBoundsCore(int, int, int, int, System.Windows.Forms.BoundsSpecified)
Documentation for this section has not yet been entered.
override
SetClientSizeCore(int, int)

Sets the client size of the form. This will adjust the bounds of the form to make the client size the requested size.

override
SetVisibleCore(bool)
Documentation for this section has not yet been entered.
override
UpdateDefaultButton()

Updates which button is the default button.

override
WndProc(ref System.Windows.Forms.Message)
Documentation for this section has not yet been entered.