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