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)
3810control.Invoke(method); 3836Assert.Throws<DivideByZeroException>(() => control.Invoke(method)); 3864Assert.Throws<DivideByZeroException>(() => control.Invoke(method)); 3879DivideByZeroException exception = Assert.Throws<DivideByZeroException>(() => control.Invoke(() => FaultingMethod())); 4174Assert.Throws<InvalidOperationException>(() => control.Invoke(method));