62 references to CanFocus
System.Windows.Forms (6)
System\Windows\Forms\Control.cs (1)
5103if (CanFocus)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (2)
223return (VARIANT)(this.TryGetOwnerAs(out owner) && owner.CanFocus); 377if (this.IsOwnerHandleCreated(out DataGridView? owner) && owner.CanFocus)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataGridViewEditingPanelAccessibleObject.cs (1)
68if (this.IsOwnerHandleCreated(out Panel? owner) && owner.CanFocus)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelAccessibleObject.cs (1)
21UIA_PROPERTY_ID.UIA_IsKeyboardFocusablePropertyId => (VARIANT)(this.TryGetOwnerAs(out ToolStripPanel? owner) && owner.CanFocus),
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
961if (TextBox.CanFocus)
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
37Assert.False(control.CanFocus);
System.Windows.Forms.Tests (55)
System\Windows\Forms\AxHostTests.cs (2)
44Assert.False(control.CanFocus); 138Assert.False(control.CanFocus);
System\Windows\Forms\ButtonBaseTests.cs (1)
36Assert.False(control.CanFocus);
System\Windows\Forms\ButtonTests.cs (1)
38Assert.False(control.CanFocus);
System\Windows\Forms\CheckBoxTests.cs (1)
37Assert.False(control.CanFocus);
System\Windows\Forms\ComboBoxTests.cs (1)
41Assert.False(control.CanFocus);
System\Windows\Forms\ContainerControlTests.cs (1)
43Assert.False(control.CanFocus);
System\Windows\Forms\ControlTests.cs (5)
31Assert.False(control.CanFocus); 120Assert.False(control.CanFocus); 216Assert.False(control.CanFocus); 312Assert.False(control.CanFocus); 408Assert.False(control.CanFocus);
System\Windows\Forms\ControlTests.Properties.cs (1)
3053Assert.False(control.CanFocus);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
40Assert.False(control.CanFocus);
System\Windows\Forms\DateTimePickerTests.cs (1)
44Assert.False(control.CanFocus);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
51Assert.False(control.CanFocus);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
38Assert.False(control.CanFocus);
System\Windows\Forms\DomainUpDownTests.cs (1)
51_sub.CanFocus.Should().BeFalse();
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
37Assert.False(control.CanFocus);
System\Windows\Forms\FormTests.cs (1)
49Assert.False(control.CanFocus);
System\Windows\Forms\GroupBoxTests.cs (1)
34Assert.False(control.CanFocus);
System\Windows\Forms\HScrollBarTests.cs (1)
34Assert.False(control.CanFocus);
System\Windows\Forms\LabelTests.cs (1)
34Assert.False(control.CanFocus);
System\Windows\Forms\ListBoxTests.cs (1)
35Assert.False(control.CanFocus);
System\Windows\Forms\ListControlTests.cs (1)
35Assert.False(control.CanFocus);
System\Windows\Forms\ListViewTests.cs (1)
42Assert.False(control.CanFocus);
System\Windows\Forms\MdiClientTests.cs (1)
32Assert.False(control.CanFocus);
System\Windows\Forms\MenuStripTests.cs (1)
37Assert.False(control.CanFocus);
System\Windows\Forms\MonthCalendarTests.cs (1)
43Assert.False(control.CanFocus);
System\Windows\Forms\PanelTests.cs (1)
38Assert.False(control.CanFocus);
System\Windows\Forms\PictureBoxTests.cs (1)
37Assert.False(control.CanFocus);
System\Windows\Forms\ProgressBarTests.cs (1)
33Assert.False(control.CanFocus);
System\Windows\Forms\PropertyGridTests.cs (1)
50Assert.False(control.CanFocus);
System\Windows\Forms\RadioButtonTests.cs (1)
37Assert.False(control.CanFocus);
System\Windows\Forms\RichTextBoxTests.cs (1)
46Assert.False(control.CanFocus);
System\Windows\Forms\ScrollableControlTests.cs (1)
37Assert.False(control.CanFocus);
System\Windows\Forms\ScrollBarTests.cs (1)
32Assert.False(control.CanFocus);
System\Windows\Forms\SplitterPanelTests.cs (1)
43Assert.False(control.CanFocus);
System\Windows\Forms\SplitterTests.cs (1)
33Assert.False(control.CanFocus);
System\Windows\Forms\StatusStripTests.cs (1)
37Assert.False(control.CanFocus);
System\Windows\Forms\TabControlTests.cs (1)
35Assert.False(control.CanFocus);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
39Assert.False(control.CanFocus);
System\Windows\Forms\TabPageTests.cs (2)
42Assert.False(control.CanFocus); 151Assert.False(control.CanFocus);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
40Assert.False(control.CanFocus);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
41Assert.False(control.CanFocus);
System\Windows\Forms\ToolStripPanelTests.cs (1)
39Assert.False(control.CanFocus);
System\Windows\Forms\ToolStripTests.cs (2)
41Assert.False(control.CanFocus); 199Assert.False(control.CanFocus);
System\Windows\Forms\TreeViewTests.cs (1)
33Assert.False(control.CanFocus);
System\Windows\Forms\UpDownBaseTests.cs (1)
38Assert.False(control.CanFocus);
System\Windows\Forms\UserControlTests.cs (1)
43Assert.False(control.CanFocus);
System\Windows\Forms\VScrollBarTests.cs (1)
33Assert.False(control.CanFocus);
TextBoxTests.cs (1)
39Assert.False(control.CanFocus);
TrackBarTests.cs (1)
34Assert.False(control.CanFocus);