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