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)
2212if (CheckForIllegalCrossThreadCalls && !t_inCrossThreadSafeCall && InvokeRequired)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1139if (IsHandleCreated && InvokeRequired)
System\Windows\Forms\Controls\Labels\Label.cs (1)
1183if (IsHandleCreated && InvokeRequired)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
1053if (InvokeRequired && IsHandleCreated)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
3017if (InvokeRequired)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
289if (PropertyGridView.InvokeRequired)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2677if (parent.IsHandleCreated && parent.InvokeRequired)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1826if (tv.InvokeRequired)
System.Windows.Forms.Tests (14)
System\Windows\Forms\ControlTests.Properties.cs (4)
6562Assert.False(control.InvokeRequired); 6566Assert.True(control.InvokeRequired); 6575Assert.False(control.InvokeRequired); 6579Assert.True(control.InvokeRequired);
System\Windows\Forms\ControlTests_InvokeAsync.cs (8)
32Assert.True(control.InvokeRequired); 74Assert.True(control.InvokeRequired); 111Assert.True(control.InvokeRequired); 154Assert.True(control.InvokeRequired); 171Assert.False(control.InvokeRequired, "InvokeAsync should not be required after the first await with ConfigureAwait(true)."); 174Assert.False(control.InvokeRequired, "InvokeAsync should not be required after a subsequent await with ConfigureAwait(true)."); 177Assert.True(control.InvokeRequired, "InvokeAsync should always be required after an await with ConfigureAwait(false)."); 198Assert.True(control.InvokeRequired);
System\Windows\Forms\DomainUpDownTests.cs (1)
111_sub.InvokeRequired.Should().BeFalse();
System\Windows\Forms\UpDownBaseTests.cs (1)
98Assert.False(control.InvokeRequired);