25 references to OleRequired
System.Windows.Forms (18)
System\Windows\Forms\ActiveX\AxHost.cs (2)
182if (Application.OleRequired() != ApartmentState.STA) 3286if (Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
89Application.OleRequired();
System\Windows\Forms\Control.cs (1)
9468if (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)
5113Application.OleRequired();
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
169if (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 (3)
45if (Application.OleRequired() != ApartmentState.STA) 92if (Application.OleRequired() != ApartmentState.STA) 167if (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)
252Assert.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());