38 references to ContainsFocus
System.Windows.Forms (38)
winforms\Managed\System\WinForms\ComboBox.cs (2)
870
if ((!
ContainsFocus
|| !Application.RenderWithVisualStyles) && this.FlatStyle == FlatStyle.Popup) {
6031
bool focused = comboBox.
ContainsFocus
|| comboBox.MouseIsOver;
winforms\Managed\System\WinForms\ContainerControl.cs (1)
1418
if (ccAncestor.
ContainsFocus
&&
winforms\Managed\System\WinForms\Control.cs (3)
10952
bool focused =
ContainsFocus
;
11713
if (
ContainsFocus
&& ParentInternal != null) {
17138
if (!control.
ContainsFocus
) control.FocusInternal();
winforms\Managed\System\WinForms\Control.Ime.cs (2)
295
else if(
ContainsFocus
) {
837
if( (appForm == null || appForm.Modal) && !topMostWinformsParent.
ContainsFocus
) {
winforms\Managed\System\WinForms\DataGrid.cs (2)
1615
if (this.
ContainsFocus
&& this.ParentInternal == null) {
5223
if (this.
ContainsFocus
) {
winforms\Managed\System\WinForms\DataGridViewCell.cs (2)
1318
if (dgv.EditingControl.
ContainsFocus
)
2736
Debug.Assert(!dgv.EditingPanel.
ContainsFocus
);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
60
if (this.
ContainsFocus
)
15512
if (this.editingControl != null && this.editingControl.
ContainsFocus
)
winforms\Managed\System\WinForms\Form.cs (1)
7303
if (ActiveControl != null && !ActiveControl.
ContainsFocus
) {
winforms\Managed\System\WinForms\Label.cs (1)
1651
if (!parent.
ContainsFocus
) {
winforms\Managed\System\WinForms\MenuStrip.cs (2)
219
if (!(Focused ||
ContainsFocus
)) {
247
if (Focused || !
ContainsFocus
) {
winforms\Managed\System\WinForms\PropertyGrid.cs (4)
2663
if (gridView.
ContainsFocus
) {
3751
if (hotcommands.Visible && hotcommands.
ContainsFocus
) {
3819
else if (hotcommands.
ContainsFocus
) {
4796
return gridView.
ContainsFocus
&& toolStrip.Visible;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
437
return(this.
ContainsFocus
|| (dropDownHolder != null && dropDownHolder.
ContainsFocus
));
winforms\Managed\System\WinForms\TabControl.cs (1)
1949
if (!
ContainsFocus
) {
winforms\Managed\System\WinForms\ToolStrip.cs (9)
533
return (
ContainsFocus
== false);
906
return (
ContainsFocus
|| (ToolStripManager.ModalMenuFilter.InMenuMode && ToolStripManager.ModalMenuFilter.GetActiveToolStrip() == this));
1927
if (
ContainsFocus
&& !Focused) {
2944
if (!
ContainsFocus
) {
3017
if (Focused ||
ContainsFocus
) {
4092
if (!DesignMode && !TabStop && (Focused ||
ContainsFocus
)) {
4101
if (KeyboardActive && !Focused && !
ContainsFocus
) {
4518
else if (!
ContainsFocus
&& !Focused) {
5162
if (ownerToolStrip.
ContainsFocus
) {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (2)
700
bool focused = comboBox.
ContainsFocus
|| comboBox.MouseIsOver;
726
if (AccessibilityImprovements.Level2 && SystemInformation.HighContrast && (comboBox.
ContainsFocus
|| comboBox.MouseIsOver) && ToolStripManager.VisualStylesEnabled) {
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
1348
if (!activeToolStrip.
ContainsFocus
) {
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
561
if (!this.
ContainsFocus
) {