25 references to OleRequired
System.Windows.Forms (18)
System\Windows\Forms\ActiveX\AxHost.cs (2)
182
if (Application.
OleRequired
() != ApartmentState.STA)
3286
if (Application.
OleRequired
() != ApartmentState.STA)
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
89
Application.
OleRequired
();
System\Windows\Forms\Control.cs (1)
9468
if (Application.
OleRequired
() != ApartmentState.STA)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
154
if (Application.
OleRequired
() != ApartmentState.STA)
196
if (Application.
OleRequired
() != ApartmentState.STA)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5113
Application.
OleRequired
();
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
169
if (Application.
OleRequired
() != ApartmentState.STA)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
72
if (Application.
OleRequired
() != ApartmentState.STA)
1215
if (Application.
OleRequired
() != ApartmentState.STA)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
728
if (Control.CheckForIllegalCrossThreadCalls && Application.
OleRequired
() != ApartmentState.STA)
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
448
if (Control.CheckForIllegalCrossThreadCalls && Application.
OleRequired
() != ApartmentState.STA)
System\Windows\Forms\Input\InputLanguage.cs (2)
38
Application.
OleRequired
();
44
Application.
OleRequired
();
System\Windows\Forms\OLE\Clipboard.cs (3)
45
if (Application.
OleRequired
() != ApartmentState.STA)
92
if (Application.
OleRequired
() != ApartmentState.STA)
167
if (Application.
OleRequired
() != ApartmentState.STA)
System\Windows\Forms\OLE\DragDropHelper.cs (1)
520
if (Control.CheckForIllegalCrossThreadCalls && Application.
OleRequired
() != ApartmentState.STA)
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ControlDesigner.cs (2)
518
Application.
OleRequired
();
879
Application.
OleRequired
();
System\Windows\Forms\Design\FolderNameEditor.FolderBrowser.cs (1)
56
Application.
OleRequired
();
System.Windows.Forms.Tests (4)
System\Windows\Forms\ControlTests.Properties.cs (1)
252
Assert.Equal(ApartmentState.STA, Application.
OleRequired
());
System\Windows\Forms\RichTextBoxTests.cs (2)
313
Assert.Equal(ApartmentState.STA, Application.
OleRequired
());
1265
Assert.Equal(ApartmentState.STA, Application.
OleRequired
());
System\Windows\Forms\ToolStripTests.cs (1)
460
Assert.Equal(ApartmentState.STA, Application.
OleRequired
());