24 references to OleRequired
System.Windows.Forms (17)
System\Windows\Forms\ActiveX\AxHost.cs (2)
198if (Application.OleRequired() != ApartmentState.STA) 3317if (Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
89Application.OleRequired();
System\Windows\Forms\Control.cs (1)
9715if (Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
154if (Application.OleRequired() != ApartmentState.STA) 196if (Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5199Application.OleRequired();
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
170if (Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
72if (Application.OleRequired() != ApartmentState.STA) 1215if (Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
728if (Control.CheckForIllegalCrossThreadCalls && Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
448if (Control.CheckForIllegalCrossThreadCalls && Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Input\InputLanguage.cs (2)
38Application.OleRequired(); 44Application.OleRequired();
System\Windows\Forms\OLE\Clipboard.cs (2)
34if (Application.OleRequired() != ApartmentState.STA) 81if (Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\OLE\DragDropHelper.cs (1)
520if (Control.CheckForIllegalCrossThreadCalls && Application.OleRequired() != ApartmentState.STA)
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ControlDesigner.cs (2)
518Application.OleRequired(); 879Application.OleRequired();
System\Windows\Forms\Design\FolderNameEditor.FolderBrowser.cs (1)
56Application.OleRequired();
System.Windows.Forms.Tests (4)
System\Windows\Forms\ControlTests.Properties.cs (1)
255Assert.Equal(ApartmentState.STA, Application.OleRequired());
System\Windows\Forms\RichTextBoxTests.cs (2)
313Assert.Equal(ApartmentState.STA, Application.OleRequired()); 1265Assert.Equal(ApartmentState.STA, Application.OleRequired());
System\Windows\Forms\ToolStripTests.cs (1)
460Assert.Equal(ApartmentState.STA, Application.OleRequired());