2 writes to CurrentForm
System.Windows.Forms (2)
System\Windows\Forms\Application.ThreadContext.cs (2)
737CurrentForm = context.MainForm; 819CurrentForm = 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)
734Form? oldForm = CurrentForm; 753bool modalEnabled = CurrentForm is not null && CurrentForm.Enabled; 760if (CurrentForm is not null) 762hwndOwner = (HWND)PInvokeCore.GetWindowLong(CurrentForm, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT); 779if (CurrentForm is not null && CurrentForm.IsHandleCreated && PInvoke.IsWindowEnabled(CurrentForm) != modalEnabled) 781PInvoke.EnableWindow(CurrentForm, modalEnabled); 799if (fullModal && CurrentForm is not null) 801CurrentForm.Visible = true;