160 references to Focus
Accessibility_Core_App (1)
DataControls.cs (1)
45dataGridView2.Focus();
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.cs (2)
482textBoxPermissionsContact.Focus(); 681textBoxUserName.Focus();
System.Windows.Forms (93)
System\Windows\Forms\ActiveX\AxHost.cs (2)
1776Focus(); 3098Focus();
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
898_control.Focus();
System\Windows\Forms\Control.cs (2)
9241Focus(); 11371Focus();
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
522if (Focus())
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
509Focus();
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
380owner.Focus();
System\Windows\Forms\Controls\DataGridView\DataGridView.DataGridViewEditingPanelAccessibleObject.cs (1)
70owner.Focus();
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
5219EditingControl.Focus(); 6260Focus();
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1060dataGridView.Focus();
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
579_owner.DataGridView.Focus();
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (1)
220dataGridView.Focus();
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
413dataGridView.Focus();
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (1)
225dataGridView.Focus();
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (1)
207Owner.DataGridView.Focus();
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1556Focus();
System\Windows\Forms\Controls\Labels\Label.cs (1)
1369parent.Focus();
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
848Focus();
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5883Focus();
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
877lv.Focus();
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
2196Focus();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (2)
141Label.Focus(); 161public void FocusLabel() => Label.Focus();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
298bool focused = PropertyGridView.Focus();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (2)
97_detailsTextBox.Focus(); 328_okButton.Focus();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (43)
647Focus(); 772DialogButton.Focus(); 776DropDownButton.Focus(); 780EditTextBox.Focus(); 784Focus(); 841gotFocus = Focus(); 851gotFocus = Focus(); 858gotFocus = Focus(); 1051EditTextBox.Focus(); 1206EditTextBox.Focus(); 1222DialogButton.Focus(); 1228EditTextBox.Focus(); 1296EditTextBox.Focus(); 1473Focus(); 2185EditTextBox.Focus(); 2244EditTextBox.Focus(); 2389Focus(); 2560EditTextBox.Focus(); 2623Focus(); 2633Focus(); 2667EditTextBox.Focus(); 2674Focus(); 2905EditTextBox.Focus(); 3157EditTextBox.Focus(); 3431EditTextBox.Focus(); 3867DropDownButton.Focus(); 3872DialogButton.Focus(); 3886EditTextBox.Focus(); 4259Focus(); 4396Focus(); 4482Focus(); 4595EditTextBox.Focus(); 4710_editTextBox.Focus(); 4775Focus(); 4783DialogButton.Focus(); 4787DropDownButton.Focus(); 4792EditTextBox.Focus(); 5052EditTextBox.Focus(); 5062_currentEditor?.Focus(); 5187Focus(); 5316EditTextBox.Focus(); 5323EditTextBox.Focus(); 5329EditTextBox.Focus();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
254_currentControl.Focus();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (2)
67Focus(); 94Focus();
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1855c.ActiveControl?.Focus();
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
921Focus();
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (4)
1742Focus(); 1759controlHost.Control.Focus(); 4007focusSuccess = control.Focus(); 4161Focus();
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
471public void Focus() => ControlInternal.Focus();
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
238toolStrip.Focus();
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1287tv.Focus();
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
3261Focus();
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
114_parent.Focus();
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
345Focus(); 408Focus();
System\Windows\Forms\MDI\MdiWindowListStrip.cs (2)
174dialog.ActiveChildForm.ActiveControl.Focus(); 192boundForm.ActiveControl.Focus();
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
322Focus();
System\Windows\Forms\Printing\PrintPreviewDialog.cs (2)
1034_toolStrip1.Focus(); 1047_pageCounter.Focus();
System\Windows\Forms\UserControl.cs (1)
296Focus();
System.Windows.Forms.Design (46)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
342ctrlSender.Focus(); 921ctrlSender.Focus(); 1011ctrlSender.Focus();
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (2)
57PropertyGrid.Focus(); 84PropertyGrid.Focus();
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (1)
83_monthCalendar.Focus();
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
32public override void Focus() => _checkBox.Focus();
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (2)
81_hostedControl.Focus(); 163parent.Focus();
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
40_linkLabel.Focus();
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
73EditControl!.Focus();
System\ComponentModel\Design\DesignerActionUI.cs (1)
728_designerActionHost.Focus();
System\Drawing\Design\ColorEditor.ColorUI.ColorEditorTabControl.cs (1)
23selectedTab.Controls[0].Focus();
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
327selectedPage.Controls[0].Focus();
System\Drawing\Design\SelectionPanelBase.cs (1)
41CheckedControl.Focus();
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (3)
136_top.Focus(); 261Focus(); 318_picker._tabOrder[i].Focus();
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
65_noneCheckBox.Focus();
System\Windows\Forms\Design\ComponentTray.cs (1)
1705view.Focus();
System\Windows\Forms\Design\ControlDesigner.cs (1)
2181view.Focus();
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (4)
147_nameTextBox.Focus(); 185_dataBoundColumnRadioButton.Focus(); 191_nameTextBox.Focus(); 510_nameTextBox.Focus();
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (3)
126_selectedColumns.Focus(); 820_selectedColumns.Focus(); 1041_propertyGrid1.Focus();
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1642_treeViewCtrl?.Focus();
System\Windows\Forms\Design\DesignerToolStripControlHost.cs (1)
83miniToolStrip.Focus();
System\Windows\Forms\Design\FormatControl.cs (5)
165formatTypeListBox.Focus(); 171nullValueTextBox.Focus(); 188decimalPlacesUpDown.Focus(); 200dateTimeFormatsListBox.Focus(); 212_customStringTextBox.Focus();
System\Windows\Forms\Design\NavigationalTableLayoutPanel.cs (1)
52radioButtons[focusIndex].Focus();
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (5)
251_ctrlCheckBox.Focus(); 268_resetButton.Focus(); 279_resetButton.Focus(); 291_keyComboBox.Focus(); 297_ctrlCheckBox.Focus();
System\Windows\Forms\Design\TabControlDesigner.cs (1)
317focusWnd?.Focus();
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
917tb.Focus(); 997designerFrame.Focus(); 1009_addItemButton.DropDown.Focus(); 1351_contextMenu.Focus();
System.Windows.Forms.Tests (8)
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (2)
137form.Focus(); 158form.Focus();
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (1)
297listBox.Focus();
System\Windows\Forms\ComboBoxTests.cs (1)
2885Focus();
System\Windows\Forms\ControlTests.Methods.cs (1)
2094Assert.False(control.Focus());
System\Windows\Forms\MonthCalendarTests.cs (1)
4409monthCalendar.Focus();
System\Windows\Forms\SendKeysTests.cs (1)
15form.Focus();
TextBoxBaseTests.ClipboardTests.cs (1)
21control.Focus();
System.Windows.Forms.TestUtilities (1)
PropertyGridInternal\SubPropertyGrid.cs (1)
109GridView.Focus();
System.Windows.Forms.UI.IntegrationTests (6)
ButtonTests.cs (2)
64Assert.True(button.Focus()); 82Assert.True(button.Focus());
ListBoxAccesibleObjectTests.cs (2)
23textBox.Focus(); 27listBox.Focus();
ListViewTests.cs (1)
57listView.Focus();
NumericUpDownTests.cs (1)
26control.Focus();
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (1)
607this.Focus();
System\Windows\Integration\WindowsFormsHost.cs (1)
908{ ret.Focus(); }
WinFormsControlsTest (1)
MainForm.cs (1)
237overarchingFlowLayoutPanel.Controls[(int)MainFormControlsTabOrder.ButtonsButton].Focus();