1 write to Control
System.Windows.Forms (1)
System\Windows\Forms\ControlEventArgs.cs (1)
16
Control
= control;
32 references to Control
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (5)
454
if (e.
Control
is not null)
456
var toolStrip = e.
Control
as ToolStrip;
459
Join(toolStrip, e.
Control
.Location);
472
if (e.
Control
is ISupportToolStripPanel controlToBeDragged)
474
controlToBeDragged.ToolStripPanelRow?.ControlsInternal.Remove(e.
Control
);
System.Windows.Forms.Design (24)
System\Windows\Forms\Design\ControlDesigner.cs (13)
495
if (e.
Control
is null || _host is null || _host.GetDesigner(e.
Control
) is ControlDesigner)
501
IWindowTarget oldTarget = e.
Control
.WindowTarget;
504
e.
Control
.WindowTarget = new ChildWindowTarget(this, e.
Control
, oldTarget);
507
e.
Control
.ControlAdded += OnControlAdded;
516
if (e.
Control
.IsHandleCreated)
519
PInvoke.RevokeDragDrop(e.
Control
);
523
HookChildControls(e.
Control
);
1027
if (e.
Control
is not null)
1030
if (e.
Control
.WindowTarget is ChildWindowTarget oldTarget)
1032
e.
Control
.WindowTarget = oldTarget.OldWindowTarget;
1035
UnhookChildControls(e.
Control
);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
733
Control.Controls.SetChildIndex(e.
Control
, _insertionIndex);
System\Windows\Forms\Design\TabControlDesigner.cs (3)
389
if (e.
Control
is not null && !e.
Control
.IsHandleCreated)
392
_ = e.
Control
.Handle;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (4)
1241
_droppedCellPosition = GetControlPosition(e.
Control
);
1246
ControlAddedInternal(e.
Control
, _droppedCellPosition, false, fullTable, null);
1256
if (e is not null && e.
Control
is not null)
1258
Table.SetCellPosition(e.
Control
, new TableLayoutPanelCellPosition(-1, -1));
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (3)
366
if (e.
Control
is not ToolStrip)
380
PropertyDescriptor? dockProp = TypeDescriptor.GetProperties(e.
Control
)["Dock"];
381
dockProp?.SetValue(e.
Control
, DockStyle.None);
System.Windows.Forms.Tests (3)
System\Windows\Forms\ControlEventArgsTests.cs (1)
19
Assert.Equal(control, e.
Control
);
System\Windows\Forms\ControlTests.ControlCollection.cs (2)
498
Assert.Same(child1, e.
Control
);
2810
Assert.Same(child1, e.
Control
);