2 writes to CurrentForm
System.Windows.Forms (2)
System\Windows\Forms\Application.ThreadContext.cs (2)
725CurrentForm = context.MainForm; 807CurrentForm = oldForm;
15 references to CurrentForm
System.Windows.Forms (15)
System\Windows\Forms\Application.ComponentThreadContext.cs (3)
267result = LocalModalMessageLoop(CurrentForm); 443if (CurrentForm is null || CurrentForm.CheckCloseDialog(false))
System\Windows\Forms\Application.LightThreadContext.cs (1)
53if (CurrentForm is not { } form || form.CheckCloseDialog(closingOnly: false))
System\Windows\Forms\Application.ThreadContext.cs (11)
722Form? oldForm = CurrentForm; 741bool modalEnabled = CurrentForm is not null && CurrentForm.Enabled; 748if (CurrentForm is not null) 750hwndOwner = (HWND)PInvokeCore.GetWindowLong(CurrentForm, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 767if (CurrentForm is not null && CurrentForm.IsHandleCreated && PInvoke.IsWindowEnabled(CurrentForm) != modalEnabled) 769PInvoke.EnableWindow(CurrentForm, modalEnabled); 787if (fullModal && CurrentForm is not null) 789CurrentForm.Visible = true;