63 references to IsDisposed
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
686If _splashScreen IsNot Nothing AndAlso Not _splashScreen.IsDisposed Then
System.Windows.Forms (56)
System\Windows\Forms\ApplicationContext.cs (1)
95if (!_mainForm.IsDisposed)
System\Windows\Forms\Control.cs (5)
3591if (IsDisposed && _threadCallbackList is not null && _threadCallbackList.Count > 0) 9129if (!IsDisposed) 11428if (!RecreatingHandle && !Disposing && !IsDisposed && GetState(States.TrackingMouseEvent)) 11501if (IsDisposed) 11688&& !IsDisposed
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1130if (Disposing || IsDisposed)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
14610if (!_dataGridViewOper[OperationInDispose] && !IsDisposed) 14939&& !IsDisposed) 15862&& !IsDisposed 16663if (_dataGridViewOper[OperationInDispose] || IsDisposed) 30107_dataGridViewOper[OperationInDispose] || IsDisposed ? null : Events[staticEvent] as T;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
2784if (DataGridView is null || DataGridView.IsDisposed) 2820if (DataGridView is not null && !DataGridView.IsDisposed && !DataGridView.Disposing)
System\Windows\Forms\Controls\Labels\Label.cs (1)
1178if (Disposing || IsDisposed)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
866if (Disposing || IsDisposed)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
1047if (Disposing || IsDisposed)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
4021if (IsDisposed)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1310if (IsDisposed)
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
370if (!IsDisposed) 1985!SelectedTab.IsDisposed && SelectedTab.TabAccessibilityObject is not null)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
1396if (!IsDropDown && !IsDisposed && !Properties.TryGetValue(s_propToolStripPanelCell, out toolStripPanelCell)) 3665if (!Disposing && !IsDisposed) 4090if (!Disposing && !IsDisposed)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.RestoreFocusMessageFilter.cs (1)
19if (_ownerToolStrip.Disposing || _ownerToolStrip.IsDisposed || _ownerToolStrip.IsDropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1732if (TopLevel && (!IsDisposed || !Disposing)) 1754if (toolStrip is not null && !(toolStrip.IsDisposed || toolStrip.Disposing))
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
553if (!IsDisposed)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
2672if (parent.Disposing || parent.IsDisposed) 3008if (Owner is not null && !(Owner.IsDisposed || Owner.Disposing))
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
193!toolStrip.IsDisposed &&
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
521if (activeToolStrip.IsDisposed)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.cs (2)
26if (_dropDown is not null && !_dropDown.IsDisposed) 35if (_dropDown is not null && !_dropDown.IsDisposed)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (1)
43if (IsDisposed || _numPaintsServiced != 0)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
391&& !_wrappedToolStrip.IsDisposed // ensure we have a live-runtime only toolstrip.
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
203if (!Disposing && !IsDisposed)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (14)
232if (tv is null || tv.IsDisposed) 265if (tv is null || tv.IsDisposed) 300if (tv is null || !tv.IsHandleCreated || tv.IsDisposed) 328if (HTREEITEMInternal != IntPtr.Zero && _treeView is not null && !_treeView.IsDisposed) 619if (tv.IsDisposed) 693if (tv is null || tv.IsDisposed) 855if (tv is null || tv.IsDisposed) 960if (tv is null || tv.IsDisposed) 1587if (tv is null || tv.IsDisposed) 1656if (tv is null || tv.IsDisposed) 1818if (tv is null || !tv.IsHandleCreated || tv.IsDisposed) 1973if (tv is null || tv.IsDisposed) 2132if (tv.IsDisposed) 2199if (tv.IsDisposed)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1393ObjectDisposedException.ThrowIf(IsDisposed, this);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
476if (Visible && !Disposing && !IsDisposed)
System\Windows\Forms\ToolTip\ToolTip.cs (2)
196if (TopLevelControl is not null && !TopLevelControl.IsDisposed) 1729if (win is Control control && control.IsDisposed)
System\Windows\Forms\WindowsFormsSynchronizationContext.cs (1)
67if (!control.IsDisposed)
System.Windows.Forms.Design (6)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
361if (Disposing || IsDisposed)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
67if (!_parentControl.IsDisposed)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
103=> DesignerFrame is not null && !DesignerFrame.IsDisposed && DesignerFrame.IsHandleCreated;
System\Windows\Forms\Design\DesignerFrame.cs (1)
116if (selSvc?.PrimarySelection is Control { IsDisposed: false } ctrl)
System\Windows\Forms\Design\SelectionUIService.cs (1)
182if (IsDisposed)
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
224if (_designerFrame is null || _designerFrame.IsDisposed || !_designerFrame.IsHandleCreated)