2 writes to CurrentForm
System.Windows.Forms (2)
System\Windows\Forms\Application.ThreadContext.cs (2)
740
CurrentForm
= context.MainForm;
822
CurrentForm
= oldForm;
15 references to CurrentForm
System.Windows.Forms (15)
System\Windows\Forms\Application.ComponentThreadContext.cs (3)
267
result = LocalModalMessageLoop(
CurrentForm
);
443
if (
CurrentForm
is null ||
CurrentForm
.CheckCloseDialog(false))
System\Windows\Forms\Application.LightThreadContext.cs (1)
53
if (
CurrentForm
is not { } form || form.CheckCloseDialog(closingOnly: false))
System\Windows\Forms\Application.ThreadContext.cs (11)
737
Form? oldForm =
CurrentForm
;
756
bool modalEnabled =
CurrentForm
is not null &&
CurrentForm
.Enabled;
763
if (
CurrentForm
is not null)
765
hwndOwner = (HWND)PInvokeCore.GetWindowLong(
CurrentForm
, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
782
if (
CurrentForm
is not null &&
CurrentForm
.IsHandleCreated && PInvoke.IsWindowEnabled(
CurrentForm
) != modalEnabled)
784
PInvoke.EnableWindow(
CurrentForm
, modalEnabled);
802
if (fullModal &&
CurrentForm
is not null)
804
CurrentForm
.Visible = true;