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