Implemented interface member:
property
InvokeRequired
System.ComponentModel.ISynchronizeInvoke.InvokeRequired
24 references to InvokeRequired
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
WindowsFormsDispatcher.cs (1)
39
=> !_dispatchThreadControl.
InvokeRequired
;
System.Windows.Forms (9)
System\Windows\Forms\Application.ModalApplicationContext.cs (1)
34
_parentWindowContext = parentControl is not null && parentControl.
InvokeRequired
System\Windows\Forms\Control.cs (1)
2212
if (CheckForIllegalCrossThreadCalls && !t_inCrossThreadSafeCall &&
InvokeRequired
)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1139
if (IsHandleCreated &&
InvokeRequired
)
System\Windows\Forms\Controls\Labels\Label.cs (1)
1183
if (IsHandleCreated &&
InvokeRequired
)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
1053
if (
InvokeRequired
&& IsHandleCreated)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
3017
if (
InvokeRequired
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
289
if (PropertyGridView.
InvokeRequired
)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2677
if (parent.IsHandleCreated && parent.
InvokeRequired
)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1826
if (tv.
InvokeRequired
)
System.Windows.Forms.Tests (14)
System\Windows\Forms\ControlTests.Properties.cs (4)
6562
Assert.False(control.
InvokeRequired
);
6566
Assert.True(control.
InvokeRequired
);
6575
Assert.False(control.
InvokeRequired
);
6579
Assert.True(control.
InvokeRequired
);
System\Windows\Forms\ControlTests_InvokeAsync.cs (8)
32
Assert.True(control.
InvokeRequired
);
74
Assert.True(control.
InvokeRequired
);
111
Assert.True(control.
InvokeRequired
);
154
Assert.True(control.
InvokeRequired
);
171
Assert.False(control.
InvokeRequired
, "InvokeAsync should not be required after the first await with ConfigureAwait(true).");
174
Assert.False(control.
InvokeRequired
, "InvokeAsync should not be required after a subsequent await with ConfigureAwait(true).");
177
Assert.True(control.
InvokeRequired
, "InvokeAsync should always be required after an await with ConfigureAwait(false).");
198
Assert.True(control.
InvokeRequired
);
System\Windows\Forms\DomainUpDownTests.cs (1)
111
_sub.
InvokeRequired
.Should().BeFalse();
System\Windows\Forms\UpDownBaseTests.cs (1)
98
Assert.False(control.
InvokeRequired
);