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)
3801
control.
Invoke
(method);
3827
Assert.Throws<DivideByZeroException>(() => control.
Invoke
(method));
3855
Assert.Throws<DivideByZeroException>(() => control.
Invoke
(method));
3870
DivideByZeroException exception = Assert.Throws<DivideByZeroException>(() => control.
Invoke
(() => FaultingMethod()));
4165
Assert.Throws<InvalidOperationException>(() => control.
Invoke
(method));