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)
3768
control.
Invoke
(method);
3794
Assert.Throws<DivideByZeroException>(() => control.
Invoke
(method));
3822
Assert.Throws<DivideByZeroException>(() => control.
Invoke
(method));
3837
DivideByZeroException exception = Assert.Throws<DivideByZeroException>(() => control.
Invoke
(() => FaultingMethod()));
4132
Assert.Throws<InvalidOperationException>(() => control.
Invoke
(method));