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