C# Class System.Windows.Forms.NativeForm

Represents a window or dialog box that that can natively enable or disable itself.
Inheritance: Form
Show file Open project: BF2Statistics/ControlCenter

Protected Methods

Method Description
SetNativeEnabled ( bool enabled ) : void

Natively disables the current form window. Using this method disables / Enables the current form without disabling the underlying controls, thus preventing the form's controls from going grey.

By disabling this form natively, using Form.Show(this) on a new form allows it to display just like a dialog modal (Ex: Form.ShowDialog(this)), but without blocking the thread

Private Methods

Method Description
GetWindowLong ( IntPtr hWnd, int nIndex ) : int
SetWindowLong ( IntPtr hWnd, int nIndex, int dwNewLong ) : int

Method Details

SetNativeEnabled() protected method

Natively disables the current form window. Using this method disables / Enables the current form without disabling the underlying controls, thus preventing the form's controls from going grey.
By disabling this form natively, using Form.Show(this) on a new form allows it to display just like a dialog modal (Ex: Form.ShowDialog(this)), but without blocking the thread
protected SetNativeEnabled ( bool enabled ) : void
enabled bool Indicates whether this form is Enabled (true) or Disabled (false)
return void