Implemented interface member:
property
ActiveControl
System.Windows.Forms.IContainerControl.ActiveControl
14 writes to ActiveControl
System.Windows.Forms (5)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (2)
454
_parent.
ActiveControl
= null;
505
container.
ActiveControl
= site;
System\Windows\Forms\ActiveX\AxHost.cs (2)
1472
containingControl.
ActiveControl
= null;
1612
container.
ActiveControl
= control;
System\Windows\Forms\Form.cs (1)
5140
form?.
ActiveControl
= this;
System.Windows.Forms.Design (8)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
977
ActiveControl
= _listBox;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
127
ActiveControl
= _selectedColumns;
811
ActiveControl
= _selectedColumns;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
35
ActiveControl
= _typesListBox;
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
345
ActiveControl
= _treeViewCtrl;
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (1)
133
ActiveControl
= _sampleEdit;
System\Windows\Forms\Design\StyleEditorForm.cs (1)
95
ActiveControl
= _columnsAndRowsListView;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
111
ActiveControl
= _listBoxItems;
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
751
this.
ActiveControl
= _focusTarget;
51 references to ActiveControl
System.Windows.Forms (43)
System\Windows\Forms\ActiveX\AxHost.cs (3)
1470
if (containingControl.
ActiveControl
== this)
1597
Control? control = container?.
ActiveControl
;
1610
if (container is not null && container.
ActiveControl
!= control)
System\Windows\Forms\Control.cs (1)
1483
while (container.
ActiveControl
is null)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
1050
if (dataGridView.GetContainerControl() is ContainerControl cc && (dataGridView.EditingControl == cc.
ActiveControl
|| dataGridView.EditingControl.Contains(cc.
ActiveControl
)))
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
2255
if (
ActiveControl
!= _gridView)
2557
if (
ActiveControl
is null)
2564
if (!
ActiveControl
.Focus())
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
945
if (
ActiveControl
is null)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
406
if (_containingControl is not null && _containingControl.
ActiveControl
!= this)
959
if (containingControl is not null && containingControl.
ActiveControl
== this)
System\Windows\Forms\Form.cs (12)
241
return parentForm.
ActiveControl
== this && parentForm.Active;
264
if (
ActiveControl
is null)
2233
if (
ActiveControl
is null)
3295
if (Focused &&
ActiveControl
is null)
4133
Control? activeControl =
ActiveControl
;
4176
if (Focused && IsAccessibilityObjectCreated &&
ActiveControl
is null)
4818
if (SelectNextControl(
ActiveControl
, forward, true, true, true))
6083
while (containerControl.
ActiveControl
is ContainerControl)
6085
containerControl = containerControl.
ActiveControl
as ContainerControl;
6098
if (containerControl.
ActiveControl
is IButtonControl control)
6963
if (
ActiveControl
is not null && !
ActiveControl
.ContainsFocus)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (7)
406
updateContainerActiveControl = (containerControl.
ActiveControl
!= this);
492
if (cc is not null && cc.
ActiveControl
== this)
781
if (
ActiveControl
is null)
1250
Control? start =
ActiveControl
;
1500
while (result.
ActiveControl
is ContainerControl control)
1993
if (
ActiveControl
is not null)
1998
if (!
ActiveControl
.Visible)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (4)
1538
if (
ActiveControl
is not null)
1540
group =
ActiveControl
.ParentInternal;
1543
return group?.SelectNextControl(
ActiveControl
, forward, false, false, true) ?? false;
2353
if (SelectNextControlInPanel(
ActiveControl
, forward, true, true, true))
System\Windows\Forms\MDI\MdiWindowListStrip.cs (6)
172
if (dialog.ActiveChildForm?.
ActiveControl
is not null && !dialog.ActiveChildForm.
ActiveControl
.Focused)
174
dialog.ActiveChildForm.
ActiveControl
.Focus();
190
if (boundForm.
ActiveControl
is not null && !boundForm.
ActiveControl
.Focused)
192
boundForm.
ActiveControl
.Focus();
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
1045
if (
ActiveControl
== _previewControl)
System\Windows\Forms\UserControl.cs (1)
306
if (
ActiveControl
is null)
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionPanel.cs (2)
170
private Line? FocusedLine =>
ActiveControl
?.Tag as Line;
543
return (SelectNextControl(
ActiveControl
, forward, true, true, true));
WindowsFormsIntegration (6)
System\Windows\Integration\WindowsFormsHost.cs (6)
872
while (ret.
ActiveControl
is ContainerControl)
874
ret = (ContainerControl)ret.
ActiveControl
;
913
&& (this.
ActiveControl
!= null && this.
ActiveControl
.Parent == this))
915
SWF.Control c = this.
ActiveControl
.Parent;
916
return c.SelectNextControl(this.
ActiveControl
, keyCode == Keys.Right || keyCode == Keys.Down, false, false, false);