4 overrides of Focused
System.Windows.Forms (4)
winforms\Managed\System\WinForms\ComboBox.cs (1)
651
public override bool
Focused
{
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
6569
public override bool
Focused
{
winforms\Managed\System\WinForms\UpDownBase.cs (1)
405
public override bool
Focused
{
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1196
public override bool
Focused
{
106 references to Focused
System.Windows.Forms (101)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (2)
87
(Control.
Focused
|| Control.MouseIsOver || (Control.IsDefault && Control.Enabled));
542
if (Control.
Focused
&& Control.ShowFocusCues) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (6)
83
if (Control.
Focused
&& Control.ShowFocusCues) {
88
if (!(Control.IsDefault && Control.
Focused
&& (Control.FlatAppearance.BorderSize == 0))) {
158
if (Control.
Focused
&& Control.ShowFocusCues) {
162
if (!(Control.IsDefault && Control.
Focused
&& (Control.FlatAppearance.BorderSize == 0))) {
242
if (Control.
Focused
&& Control.ShowFocusCues) {
246
if (!(Control.IsDefault && Control.
Focused
&& (Control.FlatAppearance.BorderSize == 0))) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (2)
43
else if (Control.
Focused
|| Control.IsDefault) {
190
if (Control.
Focused
&& Control.ShowFocusCues) {
winforms\Managed\System\WinForms\CheckedListBox.cs (2)
853
if (
Focused
) {
1741
if (AccessibilityImprovements.Level3 && ParentCheckedListBox.
Focused
&& ParentCheckedListBox.SelectedIndex == -1) {
winforms\Managed\System\WinForms\ComboBox.cs (1)
653
if (base.
Focused
) return true;
winforms\Managed\System\WinForms\ContainerControl.cs (1)
1385
if (activeControl != value || (value != null && !value.
Focused
)) {
winforms\Managed\System\WinForms\Control.cs (2)
6372
if (
Focused
&& this.ParentInternal != null) {
6386
return
Focused
;
winforms\Managed\System\WinForms\Control.Ime.cs (3)
292
if(
Focused
) {
472
if (!DesignMode && (inputLanguageTable != ImeModeConversion.UnsupportedTable) &&
Focused
) {
565
if(
Focused
) {
winforms\Managed\System\WinForms\DataGrid.cs (5)
1619
if (this.Controls[i].
Focused
) {
5232
if (focusTheGrid && gridState[GRIDSTATE_canFocus] && CanFocus && !
Focused
)
8354
if (gridState[GRIDSTATE_canFocus] && CanFocus && !
Focused
)
8399
if (gridState[GRIDSTATE_canFocus] && CanFocus && !
Focused
)
9167
if (DataGrid.
Focused
) {
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (1)
291
if (!grid.
Focused
)
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (1)
965
if (DataGrid.
Focused
&& Owner.dgTable.FocusedRelation == relationship) {
winforms\Managed\System\WinForms\DataGridRow.cs (2)
844
if (DataGrid.
Focused
) {
962
if (DataGrid.
Focused
) {
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (2)
281
bool wasFocused = edit.
Focused
;
300
Debug.Assert(!edit.
Focused
, "the edit control just conceeded focus to the dataGrid");
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (1)
177
if (this.owner.
Focused
&& this.owner.CurrentCell != null)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (2)
779
this.DataGridView.
Focused
)
937
this.DataGridView.
Focused
&&
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1241
this.DataGridView.
Focused
&&
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
2534
this.DataGridView.
Focused
&&
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
949
this.DataGridView.
Focused
)
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (3)
1065
this.DataGridView.
Focused
&&
1115
this.DataGridView.
Focused
&&
1140
this.DataGridView.
Focused
&&
winforms\Managed\System\WinForms\DataGridViewMethods.cs (11)
3163
else if (this.ptCurrentCell.X == -1 && this.
Focused
)
4103
if (this.
Focused
&&
5215
if ((!onlyIfGridHasFocus || this.
Focused
) && this.editingControl != null)
15467
if (this.
Focused
&&
17152
if (this.
Focused
&& this.IsGridFocusRectangleEnabled())
17919
if (this.
Focused
&& this.IsGridFocusRectangleEnabled() && oldGridFocusRectangle != newGridFocusRectangle)
19388
if (this.
Focused
&& this.IsGridFocusRectangleEnabled())
20609
if (this.
Focused
)
20681
if (this.dataGridViewState1[DATAGRIDVIEWSTATE1_leavingWithTabKey] && this.
Focused
)
27037
if (this.
Focused
&&
27068
if (this.
Focused
&&
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
2219
if (this.owner.DataGridView.
Focused
&& this.owner.DataGridView.CurrentCell != null && this.owner.DataGridView.CurrentCell.RowIndex == this.owner.Index)
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
741
this.DataGridView.
Focused
&&
winforms\Managed\System\WinForms\Form.cs (1)
4083
return
Focused
;
winforms\Managed\System\WinForms\LinkLabel.cs (1)
1449
if (
Focused
&& ShowFocusCues && FocusLink == link) {
winforms\Managed\System\WinForms\ListViewItem.cs (1)
960
if (!lv.
Focused
)
winforms\Managed\System\WinForms\MaskedTextBox.cs (2)
510
if( !this.flagState[IS_NULL_MASK]&& !this.
Focused
&& !this.MaskFull && !this.DesignMode )
1919
includePrompt = !(this.HidePromptOnLeave && !this.
Focused
);
winforms\Managed\System\WinForms\MdiWindowListStrip.cs (2)
158
if (dialog.ActiveChildForm.ActiveControl != null && !dialog.ActiveChildForm.ActiveControl.
Focused
) {
184
if (boundForm.ActiveControl != null && !boundForm.ActiveControl.
Focused
) {
winforms\Managed\System\WinForms\MenuItem.cs (2)
1804
if (boundForm.ActiveControl != null && !boundForm.ActiveControl.
Focused
) {
1846
if (dialog.ActiveChildForm.ActiveControl != null && !dialog.ActiveChildForm.ActiveControl.
Focused
) {
winforms\Managed\System\WinForms\MenuStrip.cs (2)
219
if (!(
Focused
|| ContainsFocus)) {
247
if (
Focused
|| !ContainsFocus) {
winforms\Managed\System\WinForms\PropertyGrid.cs (3)
3772
if (toolStrip.
Focused
|| !toolStrip.Visible) {
3799
if (toolStrip.
Focused
) {
4793
return toolStrip.Visible && toolStrip.
Focused
;
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (2)
112
if (
Focused
) {
214
if (AccessibilityImprovements.Level3 && IsFilledWithHighlightColor && (Control.MouseIsOver || Control.
Focused
)) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (14)
994
if (Edit.Focused || DialogButton.
Focused
|| DropDownButton.
Focused
) {
1016
if (DialogButton.
Focused
&& !gotfocus) {
1021
if (DropDownButton.
Focused
&& !gotfocus) {
4014
else if (DialogButton.
Focused
|| DropDownButton.
Focused
) {
4029
if (DialogButton.
Focused
|| DropDownButton.
Focused
) {
4030
OnBtnClick((DialogButton.
Focused
? DialogButton : DropDownButton), new EventArgs());
5243
if (this.
Focused
) {
5259
if (Edit.Focused || DropDownButton.
Focused
|| DialogButton.
Focused
) {
6301
return _owningGridViewListBox.
Focused
;
6574
return base.
Focused
;
winforms\Managed\System\WinForms\RadioButton.cs (1)
615
if (!
Focused
) {
winforms\Managed\System\WinForms\SplitContainer.cs (1)
1383
if (
Focused
) {
winforms\Managed\System\WinForms\TabControl.cs (2)
1810
bool focused =
Focused
;
1934
if (!
Focused
|| tabControlState[TABCONTROLSTATE_selectFirstControl]) {
winforms\Managed\System\WinForms\ToolStrip.cs (7)
531
if (!
Focused
) {
1927
if (ContainsFocus && !
Focused
) {
3017
if (
Focused
|| ContainsFocus) {
4092
if (!DesignMode && !TabStop && (
Focused
|| ContainsFocus)) {
4101
if (KeyboardActive && !
Focused
&& !ContainsFocus) {
4513
if (
Focused
&& (otherHwnd != this.Handle)) {
4518
else if (!ContainsFocus && !
Focused
) {
winforms\Managed\System\WinForms\ToolStripControlHost.cs (2)
260
return Control.
Focused
;
458
return Control.
Focused
;
winforms\Managed\System\WinForms\ToolStripTextBox.cs (2)
690
if (!
Focused
) {
860
Color outerBorderColor = (MouseIsOver ||
Focused
) ? ColorTable.TextBoxBorder : this.BackColor;
winforms\Managed\System\WinForms\TreeNode.cs (1)
1206
if (!tv.
Focused
)
winforms\Managed\System\WinForms\TreeView.cs (1)
2838
Color color = (((curState & TreeNodeStates.Selected) == TreeNodeStates.Selected) && node.TreeView.
Focused
) ? SystemColors.HighlightText : (node.ForeColor != Color.Empty) ? node.ForeColor : node.TreeView.ForeColor;
winforms\Managed\System\WinForms\UpDownBase.cs (1)
407
return upDownEdit.
Focused
;
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1198
if (base.
Focused
) {
System.Workflow.Activities (2)
Rules\Design\Dialogs\IntellisenseTextBox.cs (2)
249
if ((this.listBoxAutoComplete.
Focused
== false) && (this.
Focused
== false))
System.Workflow.ComponentModel (3)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (3)
592
if (!this.artifactListView.
Focused
|| this.artifactListView.SelectedItems.Count == 0)
833
if (this.artifactListView.
Focused
)
921
if (this.artifactTreeView.
Focused
)