25 references to OleRequired
System.Windows.Forms (18)
System\Windows\Forms\ActiveX\AxHost.cs (2)
181
if (Application.
OleRequired
() != ApartmentState.STA)
3284
if (Application.
OleRequired
() != ApartmentState.STA)
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
89
Application.
OleRequired
();
System\Windows\Forms\Control.cs (1)
9427
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)
5109
Application.
OleRequired
();
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
170
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)
34
if (Application.
OleRequired
() != ApartmentState.STA)
81
if (Application.
OleRequired
() != ApartmentState.STA)
156
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
());