2 writes to CurrentForm
System.Windows.Forms (2)
System\Windows\Forms\Application.ThreadContext.cs (2)
740CurrentForm = context.MainForm; 822CurrentForm = 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)
737Form? oldForm = CurrentForm; 756bool modalEnabled = CurrentForm is not null && CurrentForm.Enabled; 763if (CurrentForm is not null) 765hwndOwner = (HWND)PInvokeCore.GetWindowLong(CurrentForm, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 782if (CurrentForm is not null && CurrentForm.IsHandleCreated && PInvoke.IsWindowEnabled(CurrentForm) != modalEnabled) 784PInvoke.EnableWindow(CurrentForm, modalEnabled); 802if (fullModal && CurrentForm is not null) 804CurrentForm.Visible = true;