2 writes to CurrentForm
System.Windows.Forms (2)
System\Windows\Forms\Application.ThreadContext.cs (2)
741
CurrentForm
= context.MainForm;
823
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)
738
Form? oldForm =
CurrentForm
;
757
bool modalEnabled =
CurrentForm
is not null &&
CurrentForm
.Enabled;
764
if (
CurrentForm
is not null)
766
hwndOwner = (HWND)PInvokeCore.GetWindowLong(
CurrentForm
, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT);
783
if (
CurrentForm
is not null &&
CurrentForm
.IsHandleCreated && PInvoke.IsWindowEnabled(
CurrentForm
) != modalEnabled)
785
PInvoke.EnableWindow(
CurrentForm
, modalEnabled);
803
if (fullModal &&
CurrentForm
is not null)
805
CurrentForm
.Visible = true;