Skip to content

WindowBase

ProGraMajster edited this page Mar 28, 2026 · 1 revision

WindowBase

← Back to Control Inventory

Summary

Represents the base class for windows, like Form and PopupWindow

Example

var control = new WindowBase();

Documented Properties

Name Summary
Bounds Gets the bounds of the Window.
Controls Gets the collection of controls contained by the window.
CurrentStyle Gets the current style of this window instance.
DefaultSize Gets the default size of the window.
DesktopScaling Gets the current scale factor of the desktop.
DisplayRectangle Gets the unscaled bounds of the form not including borders.
Location Gets the unscaled location of the control.
Resizeable Gets or sets whether the window is resizable.
ScaledDisplayRectangle Gets the scaled bounds of the form not including borders.
ScaledSize Gets or sets the scaled size of the window.
Scaling Gets the current scale factor of the window.
Size Gets or sets the unscaled size of the window.
StartPosition Gets or sets the startup location of the window.
Style Gets the ControlStyle properties for this instance of the window.
Visible Gets or sets whether the window is displayed to the user.

Documented Methods

Name Summary
#ctor Initializes a new instance of the Window class.
Close Closes and destroys the window.
Hide Hides the window without destroying it.
Invalidate Marks the entire window as needing to be redrawn.
Invalidate Marks the specified portion of the window as needing to be redrawn.
OnKeyDown Raises the KeyDown event.
OnKeyPress Raises the KeyPress event.
OnKeyUp Raises the KeyUp event.
OnMaximumSizeChanged Raises the MaximumSizeChanged event.
OnMinimumSizeChanged Raises the MinimumSizeChanged event.
OnPaint Paints the Form.
OnPaintBackground Paints the Form's background.
OnShown Raises the Shown event.
PointToClient Converts a point from screen coordinates to window coordinates.
PointToScreen Converts a point from window coordinates to screen coordinates.
Show Displays the window to the user.

Documented Events

Name Summary
Closed Raised when the window is closed.
Deactivated Raised when the window is deactivated.
KeyDown Raised when the user presses down a key.
KeyPress Raised when the user presses a key.
KeyUp Raised when the user releases a key.
MaximumSizeChanged Raised when the MaximumSize property is changed.
MinimumSizeChanged Raised when the MinimumSize property is changed.
Shown Raised when the window is shown.

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