169 references to IsDisposed
System.Windows.Forms (169)
winforms\Managed\System\WinForms\ApplicationContext.cs (1)
111
if (!mainForm.
IsDisposed
) {
winforms\Managed\System\WinForms\ButtonBase.cs (1)
1025
if (Disposing ||
IsDisposed
) {
winforms\Managed\System\WinForms\Control.cs (5)
4431
if (
IsDisposed
&& threadCallbackList != null && threadCallbackList.Count > 0) {
10855
if (!this.
IsDisposed
) {
13292
if (!RecreatingHandle && !Disposing && !
IsDisposed
&& GetState(STATE_TRACKINGMOUSEEVENT))
13362
if (
IsDisposed
) {
13510
if (GetState(STATE_MOUSEPRESSED) && !
IsDisposed
&& UnsafeNativeMethods.WindowFromPoint(pt.X, pt.Y) == Handle) {
winforms\Managed\System\WinForms\DataGridViewCell.cs (2)
3192
if (this.DataGridView.
IsDisposed
)
3231
if (this.DataGridView != null && !this.DataGridView.
IsDisposed
&& !this.DataGridView.Disposing)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (121)
11252
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11262
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11272
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11282
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11292
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11316
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11331
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11411
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11498
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11531
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11543
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11703
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11713
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11733
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11746
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11782
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11868
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11904
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11929
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11955
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
11986
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
12005
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
12045
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
12080
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
12108
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
12138
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
12178
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
12216
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
12248
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
12323
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
12944
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
12978
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13009
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13077
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13096
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13125
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13179
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13225
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13384
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13409
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13435
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13475
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13529
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13564
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13596
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13622
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13702
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13769
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13804
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13820
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13900
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13931
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
13969
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
14055
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
14138
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
14148
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
14353
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
14378
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
14443
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
14467
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
14517
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
14571
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
14588
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
14773
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
14893
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
14930
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
14992
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
15029
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
15055
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
15080
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
15093
if (!this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
15369
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
15387
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
15416
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
15426
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
15437
if (!this.dataGridViewState2[DATAGRIDVIEWSTATE2_messageFromEditingCtrls] && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
15458
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
15477
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
15715
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
16318
!this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
&&
17085
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
17099
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
17111
if (this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] || this.
IsDisposed
)
17304
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18016
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18033
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18050
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18060
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18070
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18106
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18202
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18231
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18249
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18326
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18392
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18402
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18639
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18664
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18724
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18751
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18767
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18787
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18814
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18850
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18871
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18881
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18891
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18906
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
18930
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
19090
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
19207
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
19250
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
19285
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
19332
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
19444
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
19456
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
19474
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
19484
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
19554
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
19564
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
19574
if (eh != null && !this.dataGridViewOper[DATAGRIDVIEWOPER_inDispose] && !this.
IsDisposed
)
winforms\Managed\System\WinForms\Form.cs (1)
5700
if (
IsDisposed
|| Disposing) {
winforms\Managed\System\WinForms\Label.cs (1)
1441
if (Disposing ||
IsDisposed
) {
winforms\Managed\System\WinForms\LinkLabel.cs (1)
1030
if (Disposing ||
IsDisposed
) {
winforms\Managed\System\WinForms\PictureBox.cs (1)
1234
if (Disposing ||
IsDisposed
) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
4108
if (this.
IsDisposed
) {
winforms\Managed\System\WinForms\RichTextBox.cs (1)
1442
if (
IsDisposed
) {
winforms\Managed\System\WinForms\TabControl.cs (1)
420
if (!
IsDisposed
)
winforms\Managed\System\WinForms\ToolStrip.cs (4)
1585
if (!IsDropDown && !
IsDisposed
) {
3830
if (!Disposing && !
IsDisposed
) {
4196
if (!Disposing && !
IsDisposed
) {
5149
if (ownerToolStrip.Disposing || ownerToolStrip.
IsDisposed
|| ownerToolStrip.IsDropDown) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1961
if (TopLevel && (!
IsDisposed
|| !Disposing)) {
1981
if (toolStrip != null && !(toolStrip.
IsDisposed
|| toolStrip.Disposing)) {
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
579
if (!this.
IsDisposed
)
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
3064
if (parent.Disposing || parent.
IsDisposed
) {
3396
if (Owner != null && !(Owner.
IsDisposed
|| Owner.Disposing)) {
winforms\Managed\System\WinForms\ToolStripManager.cs (2)
203
!toolStrip.
IsDisposed
&&
1242
if (activeToolStrip.
IsDisposed
) {
winforms\Managed\System\WinForms\ToolStripPanel.cs (3)
780
if (dropDown != null && !dropDown.
IsDisposed
) {
786
if (dropDown != null && !dropDown.
IsDisposed
) {
854
if (!
IsDisposed
) {
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
356
&& !_wrappedToolStrip.
IsDisposed
// ensure we have a live-runtime only toolstrip.
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
820
if (!Disposing && !
IsDisposed
) {
winforms\Managed\System\WinForms\ToolTip.cs (1)
242
if (TopLevelControl != null && !TopLevelControl.
IsDisposed
) {
winforms\Managed\System\WinForms\TreeNode.cs (12)
278
if (tv == null || tv.
IsDisposed
) {
304
if (tv == null || tv.
IsDisposed
) {
337
if (tv == null || !tv.IsHandleCreated || tv.
IsDisposed
)
630
if (tv.
IsDisposed
) {
705
if (tv == null || tv.
IsDisposed
) {
837
if (tv == null || tv.
IsDisposed
) {
913
if (tv == null || tv.
IsDisposed
) {
1490
if (tv == null || tv.
IsDisposed
) {
1551
if (tv == null || tv.
IsDisposed
) {
1661
if (tv == null || !tv.IsHandleCreated || tv.
IsDisposed
)
1800
if (tv == null || tv.
IsDisposed
) {
1955
if (tv.
IsDisposed
) {
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1665
if (!this.
IsDisposed
) {
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
539
if (Visible && !Disposing && !
IsDisposed
) {
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (1)
69
if (!controlToSendTo.
IsDisposed
) {