Skip to content
ProGraMajster edited this page Mar 28, 2026 · 1 revision

Form

← Back to Control Inventory

Summary

Represents a top-level window to display to the user.

Example

var form = new Form
{
    Text = "My Window"
};

Application.Run(form);

Documented Properties

Name Summary
AllowMaximize Gets or sets whether the form can be maximized.
AllowMinimize Gets or sets whether the form can be minimized.
Bounds Gets or sets the bounds of the Window.
DefaultSize No XML summary yet.
DialogResult Gets or sets the dialog result for the form.
Image Gets or sets the icon for the form.
Location Gets or sets the unscaled location of the control.
MaximumSize Gets or sets the maximum size of the Window
MinimumSize Gets or sets the minimum size of the Window
Name Gets or sets the name of the form.
ShowFocusCues Gets a value indicating a focus rectangle should be drawn on the selected control.
Size Gets or sets the unscaled size of the window.
Style No XML summary yet.
Text Gets or sets the text for the form title bar.
TitleBar Gets the title bar for the form.
UseSystemDecorations Gets or sets whether the form should use the operating system's title bar and decorations, or use managed decorations. The default is false. This must be changed before the form is shown for the first time.
WindowState Gets or sets the state of the form (normal/minimized/maximized).

Documented Methods

Name Summary
#ctor Initializes a new instance of the Form class.
BeginMoveDrag Begins dragging the window to move it.
Close No XML summary yet.
GetNextControl Gets the next control in tab order.
OnClosing Raises the Closing event.
OnThemeChanged Called when the theme changes.
ShowDialog Displays the window to the user modally, preventing interaction with other windows until closed.

Documented Events

Name Summary
Closing Raised before the form is closed, allowing close to be programatically canceled.

Notes

  • This page was generated from the public XML documentation of ModernFormsNext.
  • Base members inherited from Control, ScrollableControl, WindowBase, or other parent types may not all be repeated here.

ModernFormsNext

Clone this wiki locally