7 references to Invoke
Microsoft.VisualBasic.Forms.Tests (1)
System\Windows\Forms\ControlInvokeTests.vb (1)
27
_control.
Invoke
(AddressOf FaultingMethod)
System.Windows.Forms (1)
System\Windows\Forms\Application.MarshallingControl.cs (1)
12
/// on the correct thread via <see cref="Control.
Invoke
(Action)"/>.
System.Windows.Forms.Tests (5)
System\Windows\Forms\ControlTests.Methods.cs (5)
3810
control.
Invoke
(method);
3836
Assert.Throws<DivideByZeroException>(() => control.
Invoke
(method));
3864
Assert.Throws<DivideByZeroException>(() => control.
Invoke
(method));
3879
DivideByZeroException exception = Assert.Throws<DivideByZeroException>(() => control.
Invoke
(() => FaultingMethod()));
4174
Assert.Throws<InvalidOperationException>(() => control.
Invoke
(method));