35 types derived from Control
System.Web.Mobile (1)
UI\MobileControls\Design\Util\MSHTMLHost.cs (1)
35internal sealed class MSHTMLHost : Control {
System.Windows.Forms (31)
winforms\Managed\System\WinForms\Application.cs (1)
4050internal sealed class MarshalingControl : Control {
winforms\Managed\System\WinForms\AxHost.cs (1)
56public abstract class AxHost : Control, ISupportInitialize, ICustomTypeDescriptor {
winforms\Managed\System\WinForms\ButtonBase.cs (1)
34public abstract class ButtonBase : Control {
winforms\Managed\System\WinForms\DataGrid.cs (1)
42public class DataGrid : Control, ISupportInitialize, IDataGridEditingService {
winforms\Managed\System\WinForms\DataGridView.cs (1)
42public partial class DataGridView : Control, ISupportInitialize
winforms\Managed\System\WinForms\DateTimePicker.cs (1)
40public class DateTimePicker : Control {
winforms\Managed\System\WinForms\GroupBox.cs (1)
41public class GroupBox : Control {
winforms\Managed\System\WinForms\Label.cs (1)
46public class Label : Control, IAutomationLiveRegion {
winforms\Managed\System\WinForms\ListControl.cs (1)
38public abstract class ListControl : Control {
winforms\Managed\System\WinForms\ListView.cs (1)
47public class ListView : Control {
winforms\Managed\System\WinForms\MDIClient.cs (1)
37public sealed class MdiClient : Control {
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
78public class MonthCalendar : Control {
winforms\Managed\System\WinForms\PictureBox.cs (1)
40public class PictureBox : Control, ISupportInitialize {
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
36public class PrintPreviewControl : Control {
winforms\Managed\System\WinForms\ProgressBar.cs (1)
39public class ProgressBar : Control {
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
5020internal abstract class SnappableControl : Control {
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
26internal class GridToolTip : Control {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
36Control,
winforms\Managed\System\WinForms\ScrollableControl.cs (1)
37public class ScrollableControl : Control, IArrangedElement {
winforms\Managed\System\WinForms\ScrollBar.cs (1)
36public abstract class ScrollBar : Control {
winforms\Managed\System\WinForms\SendKeys.cs (1)
987private class SKWindow : Control {
winforms\Managed\System\WinForms\Splitter.cs (1)
38public class Splitter : Control {
winforms\Managed\System\WinForms\StatusBar.cs (1)
37public class StatusBar : Control {
winforms\Managed\System\WinForms\StatusStrip.cs (1)
602private class RightToLeftLayoutGrip : Control {
winforms\Managed\System\WinForms\TabControl.cs (1)
44public class TabControl : Control {
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
45public abstract class TextBoxBase : Control {
winforms\Managed\System\WinForms\ToolBar.cs (1)
34public class ToolBar : Control {
winforms\Managed\System\WinForms\TrackBar.cs (1)
43public class TrackBar : Control, ISupportInitialize {
winforms\Managed\System\WinForms\TreeView.cs (1)
48public class TreeView : Control {
winforms\Managed\System\WinForms\UpDownBase.cs (1)
1401internal class UpDownButtons : Control {
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
55public class WebBrowserBase : Control {
System.Windows.Forms.DataVisualization (1)
WinForm\ChartWinControl.cs (1)
113public class Chart : System.Windows.Forms.Control, ISupportInitialize, IDisposable
System.Workflow.ComponentModel (2)
AuthoringOM\Design\DesignerWidgets.cs (2)
1436internal sealed class TabControl : Control 1679internal sealed class TabStrip : Control
1 instantiation of Control
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ArrangedElement.cs (1)
32private Control spacer = new Control();
1242 references to Control
System.Messaging (1)
System\Messaging\Design\QueuePathDialog.cs (1)
277this.Controls.AddRange(new System.Windows.Forms.Control[] { this.helpButton,
System.Web.Mobile (44)
UI\MobileControls\Design\AppliedDeviceFiltersDialog.cs (2)
177this._pnlMain.Controls.AddRange(new System.Windows.Forms.Control[] { 235this.Controls.AddRange(new System.Windows.Forms.Control[] {
UI\MobileControls\Design\DeviceFilterEditorDialog.cs (7)
24using Control = System.Windows.Forms.Control; 242this._pnlHeader.Controls.AddRange(new System.Windows.Forms.Control[] { 249this._pnlMain.Controls.AddRange(new System.Windows.Forms.Control[] {this._dialogButtons, 270this._pnlRight.Controls.AddRange(new System.Windows.Forms.Control[] {this._pnlCompare, 285this._pnlCompare.Controls.AddRange(new System.Windows.Forms.Control[] {this._txtArgument, 297this._pnlDelegate.Controls.AddRange(new System.Windows.Forms.Control[] {this._txtType, 307this.Controls.AddRange(new System.Windows.Forms.Control[] {this._pnlHeader, this._pnlMain});
UI\MobileControls\Design\IDeviceSpecificDesigner.cs (1)
26System.Windows.Forms.Control Header
UI\MobileControls\Design\ListComponentEditorPage.cs (1)
68this.Controls.AddRange(new Control[] {TreeList /*, grplblProperties*/});
UI\MobileControls\Design\ListGeneralPage.cs (4)
32using Control = System.Windows.Forms.Control; 199this.Controls.AddRange(new Control[] 206this.Controls.AddRange(new Control[] 219this.Controls.AddRange(new Control[]
UI\MobileControls\Design\ListItemsPage.cs (1)
125this.Controls.AddRange(new Control[]
UI\MobileControls\Design\MobileControlDesigner.cs (2)
39private System.Windows.Forms.Control _header; 543System.Windows.Forms.Control IDeviceSpecificDesigner.Header
UI\MobileControls\Design\MobileTemplatedControlDesigner.cs (2)
42private System.Windows.Forms.Control _header; 956System.Windows.Forms.Control IDeviceSpecificDesigner.Header
UI\MobileControls\Design\ObjectListCommandsPage.cs (1)
116this.Controls.AddRange(new Control[]
UI\MobileControls\Design\ObjectListFieldsPage.cs (1)
144this.Controls.AddRange(new Control[] {
UI\MobileControls\Design\ObjectListGeneralPage.cs (2)
26using Control = System.Windows.Forms.Control; 139this.Controls.AddRange(new Control[]
UI\MobileControls\Design\PropertyOverridesDialog.cs (4)
39private System.Windows.Forms.Control _header; 154this._pnlMain.Controls.AddRange(new System.Windows.Forms.Control[] { 182this.Controls.AddRange(new System.Windows.Forms.Control[] {this._pnlMain}); 538System.Windows.Forms.Control IDeviceSpecificDesigner.Header
UI\MobileControls\Design\StylesEditorDialog.cs (2)
28using Control = System.Windows.Forms.Control; 326this.Controls.AddRange(new Control[]
UI\MobileControls\Design\StyleSheetDesigner.cs (2)
745System.Windows.Forms.Control IDeviceSpecificDesigner.Header 1305this.Controls.AddRange(new System.Windows.Forms.Control[] {this.CbStyles,
UI\MobileControls\Design\TemplatingOptionsDialog.cs (3)
37private System.Windows.Forms.Control _header; 155this._pnlMain.Controls.AddRange(new System.Windows.Forms.Control[] { 560System.Windows.Forms.Control IDeviceSpecificDesigner.Header
UI\MobileControls\Design\Util\GenericUI.cs (4)
60System.Drawing.Font vsfont = Control.DefaultFont; 83Control header = designer.Header; 100internal static int GetMaxContainedTabIndex(Control control) 104foreach(Control child in control.Controls)
UI\MobileControls\Design\Util\HeaderPanel.cs (3)
44foreach(Control child in Controls) 53Control controlIterator = this; 75foreach(Control child in Controls)
UI\MobileControls\Design\Util\MSHTMLHost.cs (2)
88protected Control parentControl; 95internal TridentSite(Control parent) {
System.Windows.Forms (1162)
winforms\Managed\System\WinForms\Application.cs (16)
1533Control.UseCompatibleTextRenderingDefault = defaultValue; 2346private Control marshalingControl; 2652internal Control ActivatingControl { 2655return activatingControlRef.Target as Control; 2676internal Control MarshalingControl { 3663Control target = Control.FromChildHandleInternal(msg.hwnd); 3673if (Control.PreProcessControlMessageInternal(target, ref m) == PreProcessControlState.MessageProcessed) { 3680if (Control.PreProcessControlMessageInternal(target, ref m) == PreProcessControlState.MessageProcessed) { 4255Control c = Control.FromHandleInternal(hWnd); 4276Control c = Control.FromHandleInternal(hWnd); 4289Control activatingControl = Application.ThreadContext.FromCurrent().ActivatingControl; 4335Control parentControl = null; 4347parentControl = Control.FromHandleInternal(parentHandle);
winforms\Managed\System\WinForms\ArrangedElement.cs (1)
32private Control spacer = new Control();
winforms\Managed\System\WinForms\AxHost.cs (44)
1212private static ISelectionService GetSelectionService(Control ctl) { 1333/// <para>Raises the <see cref='System.Windows.Forms.Control.LostFocus'/> event.</para> 1939Control ctl = f == null ? null : f.ActiveControl; 2333Control control = this; 2398Control richParent = ParentInternal; 2447Control ctl = this; 2469Control parent = ParentInternal; 3354public void ShowPropertyPages(Control control) { 3569for (Control c = this; c != null; c = c.ParentInternal) { 3583for (Control c = this; c != null; c = c.ParentInternal) { 4128bool f = ((Control)host).PreProcessMessage(ref msg); 4229Control parent = host.ParentInternal; 4447Control p = ParentInternal; 5326string ctlName = GetNameForControl((Control)e.Key); 5328return GetProxyForControl((Control)e.Value); 5344internal UnsafeNativeMethods.IExtender GetProxyForControl(Control ctl) { 5376internal string GetNameForControl(Control ctl) { 5391internal void AddControl(Control ctl) { 5420internal void RemoveControl(Control ctl) { 5450internal UnsafeNativeMethods.IEnumUnknown EnumControls(Control ctl, int dwOleContF, int dwWhich) { 5475Control[] ctls = null; 5485Control p = ctl.ParentInternal; 5496ctls = new Control[0]; 5516ctls = new Control[htbl.Keys.Count]; 5548private void MaybeAdd(ArrayList l, Control ctl, bool selected, int dwOleContF, bool ignoreBelong) { 5573if (comp is Control && comp != parent && comp.Site != null) { 5585Control[] ctls = new Control[containerCache.Values.Count]; 5602private void GetAllChildren(Control ctl) { 5613foreach(Control c in ctl.Controls) { 5638private bool GetControlBelongs(Control ctl) { 5687Control c = e.Component as Control; 5696internal static AxContainer FindContainerForControl(Control ctl) { 5864Control[] ctls = new Control[components.Keys.Count]; 5868Control ctl = ctls[i]; 6125internal ExtenderProxy(Control principal, AxContainer container) { 6130private Control GetP() { 6131return(Control) pRef.Target; 6149Control ctl = GetP(); 6175int rval = (int)((Control)GetP()).Dock; 6192return AxHost.GetOleColorFromColor(((Control)GetP()).BackColor); 6217return AxHost.GetOleColorFromColor(((Control)GetP()).ForeColor);
winforms\Managed\System\WinForms\Binding.cs (4)
171public Control Control { 176return this.control as Control; 184Control ctrl = (component as Control);
winforms\Managed\System\WinForms\BoundsSpecified.cs (4)
73/// Both <see cref='System.Windows.Forms.Control.Width'/> and <see cref='System.Windows.Forms.Control.Height'/> property values of the control are 81/// Both <see cref='System.Windows.Forms.Control.Location'/> and <see cref='System.Windows.Forms.Control.Size'/> property values are
winforms\Managed\System\WinForms\Button.cs (3)
201/// Raises the <see cref='System.Windows.Forms.Control.OnMouseEnter'/> event. 212/// Raises the <see cref='System.Windows.Forms.Control.OnMouseLeave'/> event. 342/// Generates a <see cref='System.Windows.Forms.Control.Click'/> event for a
winforms\Managed\System\WinForms\ButtonBase.cs (5)
817/// Raises the <see cref='System.Windows.Forms.Control.OnMouseEnter'/> event. 843/// Raises the <see cref='System.Windows.Forms.Control.OnMouseLeave'/> event. 868/// Raises the <see cref='System.Windows.Forms.Control.OnMouseMove'/> event. 897/// Raises the <see cref='System.Windows.Forms.Control.OnMouseDown'/> event. 1340public ButtonBaseAccessibleObject(Control owner) : base(owner) {
winforms\Managed\System\WinForms\ButtonInternal\CheckableControlBaseAdapter.cs (1)
81internal static double GetDpiScaleRatio(Graphics g, Control control) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (1)
119Control control = null)
winforms\Managed\System\WinForms\ButtonRenderer.cs (1)
82public static void DrawParentBackground(Graphics g, Rectangle bounds, Control childControl) {
winforms\Managed\System\WinForms\CheckBox.cs (1)
722public CheckBoxAccessibleObject(Control owner) : base(owner) {
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (1)
85public static void DrawParentBackground(Graphics g, Rectangle bounds, Control childControl) {
winforms\Managed\System\WinForms\CheckedListBox.cs (1)
644this.Font = Control.DefaultFont;
winforms\Managed\System\WinForms\ComboBox.cs (3)
2912/// <para>Raises the <see cref='System.Windows.Forms.Control.Resize'/> event.</para> 3455Control p = ParentInternal; 4463public ComboBoxAccessibleObject(Control ownerControl)
winforms\Managed\System\WinForms\CommonDialog.cs (2)
179Rectangle screen = Screen.GetWorkingArea(Control.MousePosition); 279hwndOwner = Control.GetSafeHandle(owner);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2FontConverter.cs (3)
57lastFont = Control.DefaultFont; 85lastFont = Control.DefaultFont; 102managedValue = Control.DefaultFont;
winforms\Managed\System\WinForms\ComponentModel\IComponentEditorPageSite.cs (1)
30Control GetControl();
winforms\Managed\System\WinForms\ContainerControl.cs (53)
36private Control activeControl; // current active control 37private Control focusedControl; // Current focused control. Do not directly edit this value. 38private Control unvalidatedControl; // The last control that requires validation. Do not directly edit this value. 284public Control ActiveControl { 381bool IContainerControl.ActivateControl(Control control) { 388internal bool ActivateControlInternal(Control control) { 392internal bool ActivateControlInternal(Control control, bool originator) { 393Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "ContainerControl::ActivateControlInternal(" + (control == null ? "null" : control.Name) + "," + originator.ToString() + ") - " + this.Name); 399Control parent = this.ParentInternal; 433Control ctl = null; 464internal virtual void AfterControlRemoved(Control control, Control oldParent) { 467Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "ContainerControl::AfterControlRemoved(" + control.Name + ") - " + this.Name); 529Control parent = cc.ParentInternal; 549private bool AssignActiveControlInternal(Control value) { 557Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "ContainerControl::AssignActiveControlInternal(" + (value == null ? "null" : value.Name) + ") - " + this.Name); 653private void EnableRequiredScaling(Control start, bool enable) { 655foreach(Control c in start.Controls) { 666Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "ContainerControl::FocusActiveControlInternal() - " + this.Name); 678if (focusHandle == IntPtr.Zero || Control.FromChildHandleInternal(focusHandle) != activeControl) { 687Control parent = cc.ParentInternal; 840internal override void OnChildLayoutResuming(Control child, bool performLayout) { 1032internal void ResumeAllLayout(Control start, bool performLayout) { 1049internal void SuspendAllLayout(Control start) { 1070internal override void Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl) { 1143Control group = this; 1250Control start = ActiveControl; 1266Control ctl = start; 1326private ScrollableControl FindScrollableParent(Control ctl) { 1327Control current = ctl.ParentInternal; 1338Control last = activeControl; 1374private void SetActiveControl(Control ctl) { 1375Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "ContainerControl::SetActiveControl(" + (ctl == null ? "null" : ctl.Name) + ") - " + this.Name); 1383internal void SetActiveControlInternal(Control value) { 1384Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "ContainerControl::SetActiveControlInternal(" + (value == null ? "null" : value.Name) + ") - " + this.Name); 1472Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "ContainerControl::UpdateFocusedControl() - " + this.Name); 1476Control pathControl = focusedControl; 1481Control nextControlDown = activeControl; 1483Control parent = nextControlDown.ParentInternal; 1489Control priorFocusedControl = focusedControl = pathControl; 1513Control stopControl = null; 1548Control leaveControl = pathControl; 1597private void EnsureUnvalidatedControl(Control candidate) { 1644private void EnterValidation(Control enterControl) { 1656AutoValidate autoValidateMode = Control.GetAutoValidateForControl(unvalidatedControl); 1664Control commonAncestor = enterControl; 1729Control controlToValidate = unvalidatedControl != null ? unvalidatedControl : focusedControl; 1734AutoValidate autoValidateMode = Control.GetAutoValidateForControl(controlToValidate); 1778private bool ValidateThroughAncestor(Control ancestorControl, bool preventFocusChangeOnError) { 1795Control currentActiveControl = activeControl; 1796Control currentValidatingControl = unvalidatedControl; 1860Control.ControlCollection children = this.Controls; 1887Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "ContainerControl::WmSetFocus() - " + this.Name);
winforms\Managed\System\WinForms\ContextMenu.cs (7)
32internal Control sourceControl; 63public Control SourceControl { 115return ((Control)sourceControl).RightToLeft; 172protected internal virtual bool ProcessCmdKey(ref Message msg, Keys keyData, Control control) { 197public void Show(Control control, Point pos) { 206public void Show(Control control, Point pos, LeftRightAlignment alignment) { 220private void Show(Control control, Point pos, int flags) {
winforms\Managed\System\WinForms\ContextMenuStrip.cs (2)
47public Control SourceControl { 90internal void ShowInternal(Control source, Point location, bool isKeyboardActivated) {
winforms\Managed\System\WinForms\Control.cs (252)
410private Control parent; 411private Control reflectParent; 476/// <para>Initializes a new instance of the <see cref='System.Windows.Forms.Control'/> class.</para> 560/// <para>Initializes a new instance of the <see cref='System.Windows.Forms.Control'/> class.</para> 562public Control( string text ) : this( (Control) null, text ) { 567/// <para>Initializes a new instance of the <see cref='System.Windows.Forms.Control'/> class.</para> 570this( (Control) null, text, left, top, width, height ) { 575/// <para>Initializes a new instance of the <see cref='System.Windows.Forms.Control'/> class.</para> 577public Control( Control parent, string text ) : this() { 584/// <para>Initializes a new instance of the <see cref='System.Windows.Forms.Control'/> class.</para> 586public Control( Control parent, string text, int left, int top, int width, int height ) : this( parent, text ) { 1088Control p = ParentInternal; 1287Control p = ParentInternal; 1938Control parent = container.ParentInternal; 1969Control parent = this.ParentInternal; 2058Control p = ParentInternal; 2255Control control = ParentInternal; 2718Control p = ParentInternal; 2924Control topMost = TopMostParent; 2993Control parent = ParentInternal; 3090Control marshalingControl = FindMarshalingControl(); 3430public Control Parent { 3443internal virtual Control ParentInternal { 3534private Control ReflectParent { 3543Control c = ReflectParent as Control; 3750Control parent = ParentInternal; 4064for( Control ctl = this; ctl != null; ctl = ctl.ParentInternal ) { 4121public Control TopLevelControl { 4130internal Control TopLevelControlInternal { 4132Control control = this; 4141internal Control TopMostParent { 4143Control control = this; 4330return Control.UseCompatibleTextRenderingDefault; 5466internal virtual void AssignParent(Control value) { 5594Control marshaler = FindMarshalingControl(); 5648for (Control ctl = this; ctl != null; ctl = ctl.parent) { 5661internal static void CheckParentingCycle(Control bottom, Control toFind) { 5663Control lastParent = null; 5665for (Control ctl = bottom; ctl != null; ctl = ctl.ParentInternal) { 5693private void ChildGotFocus(Control child) { 5706public bool Contains(Control ctl) { 5736return new System.Windows.Forms.Control.ControlCollection(this); 5891Control[] controlSnapshot = new Control[controlsCollection.Count]; 5894foreach(Control ctl in controlSnapshot) { 5991/// <see cref='System.Windows.Forms.Control'/> 6046Control ctl = controlsCollection[i]; 6213Control marshaler = FindMarshalingControl(); 6265Control cur = this; 6279private Control FindMarshalingControl() { 6282Control c = this; 6285Control p = c.ParentInternal; 6301return(Control)c; 6351Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "Control::Focus - " + this.Name); 6368Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "Control::FocusInternal - " + this.Name); 6398public static Control FromChildHandle(IntPtr handle) { 6405internal static Control FromChildHandleInternal(IntPtr handle) { 6407Control ctl = FromHandleInternal(handle); 6419public static Control FromHandle(IntPtr handle) { 6426internal static Control FromHandleInternal(IntPtr handle) { 6477public Control GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue) { 6497Control ctl = FromChildHandleInternal(hwnd); 6512public Control GetChildAtPoint(Point pt) { 6527private static bool IsFocusManagingContainerControl(Control ctl) { 6543Control c = this; 6661Control up = this; 6715foreach (Control c in Controls) { 6751internal Control[] GetChildControlsInTabOrder(bool handleCreatedOnly) { 6754Control[] ctls = new Control[holders.Count]; 6771internal readonly Control control; 6773internal ControlTabOrderHolder(int oldOrder, int newOrder, Control control) { 6823Control ctl = FromHandleInternal(hWnd); 6835internal virtual Control GetFirstChildControlInTabOrder(bool forward) { 6839Control found = null; 6868public Control GetNextControl(Control ctl, bool forward) { 6877Control found = ctl.GetFirstChildControlInTabOrder(/*forward=*/true); 6886Control found = null; 6887Control p = ctl.parent; 6950Control found = null; 6951Control p = ctl.parent; 7022Control found = ctl.GetFirstChildControlInTabOrder(/*forward=*/false); 7044Control control = window as Control; 7372Control marshaler = FindMarshalingControl(); 7527protected void InvokePaint(Control c, PaintEventArgs e) { 7535protected void InvokePaintBackground(Control c, PaintEventArgs e) { 7557internal bool IsDescendant(Control descendant) { 7558Control control = descendant; 7765private Object MarshaledInvoke(Control caller, Delegate method, Object[] args, bool synchronous) { 7897Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "Control::NotifyEnter() - " + this.Name); 7904Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "Control::NotifyLeave() - " + this.Name); 7937/// <para>Raises the <see cref='System.Windows.Forms.Control.Click'/> event.</para> 7940protected void InvokeOnClick(Control toInvoke, EventArgs e) { 8088internal virtual void OnChildLayoutResuming(Control child, bool performLayout) { 8158/// <para>Raises the <see cref='System.Windows.Forms.Control.Enabled'/> event.</para> 8402Control parent = ParentInternal; 8483Control ctl = controlsCollection[i]; 8582/// <para>Raises the <see cref='System.Windows.Forms.Control.Visible'/> event.</para> 8614Control ctl = controlsCollection[i]; 8660/// <para>Raises the <see cref='System.Windows.Forms.Control.Click'/> 8685/// <para>Raises the <see cref='System.Windows.Forms.Control.ControlAdded'/> event.</para> 8696/// <para>Raises the <see cref='System.Windows.Forms.Control.ControlRemoved'/> event.</para> 8860/// <para>Raises the <see cref='System.Windows.Forms.Control.HandleDestroyed'/> event.</para> 8913/// <para>Raises the <see cref='System.Windows.Forms.Control.DoubleClick'/> event.</para> 8924/// <para>Raises the <see cref='System.Windows.Forms.Control.Enter'/> event.</para> 9001/// <para>Raises the <see cref='System.Windows.Forms.Control.GotFocus'/> event.</para> 9004protected void InvokeGotFocus(Control toInvoke, EventArgs e) { 9015/// <para>Raises the <see cref='System.Windows.Forms.Control.GotFocus'/> event.</para> 9084/// <para>Raises the <see cref='System.Windows.Forms.Control.KeyDown'/> event.</para> 9095/// <para>Raises the <see cref='System.Windows.Forms.Control.KeyPress'/> event.</para> 9106/// <para>Raises the <see cref='System.Windows.Forms.Control.KeyUp'/> event.</para> 9121/// <para>Raises the <see cref='System.Windows.Forms.Control.Layout'/> event.</para> 9165/// <para>Raises the <see cref='System.Windows.Forms.Control.Leave'/> event.</para> 9179protected void InvokeLostFocus(Control toInvoke, EventArgs e) { 9190/// <para>Raises the <see cref='System.Windows.Forms.Control.LostFocus'/> event.</para> 9211/// <para>Raises the <see cref='System.Windows.Forms.Control.MouseDoubleClick'/> event.</para> 9222/// <para>Raises the <see cref='System.Windows.Forms.Control.OnMouseClick'/> event.</para> 9233/// <para>Raises the <see cref='System.Windows.Forms.Control.MouseCaptureChanged'/> event.</para> 9244/// <para>Raises the <see cref='System.Windows.Forms.Control.MouseDown'/> event.</para> 9255/// <para>Raises the <see cref='System.Windows.Forms.Control.MouseEnter'/> event.</para> 9266/// <para>Raises the <see cref='System.Windows.Forms.Control.MouseLeave'/> event.</para> 9279/// Raises the <see cref='System.Windows.Forms.Control.DpiChangedBeforeParent'/> event. 9297/// Raises the <see cref='System.Windows.Forms.Control.DpiChangedAfterParent'/> event. 9314/// <para>Raises the <see cref='System.Windows.Forms.Control.MouseHover'/> event.</para> 9325/// <para>Raises the <see cref='System.Windows.Forms.Control.MouseMove'/> event.</para> 9336/// <para>Raises the <see cref='System.Windows.Forms.Control.MouseUp'/> event.</para> 9347/// <para>Raises the <see cref='System.Windows.Forms.Control.MouseWheel'/> event.</para> 9358/// <para>Raises the <see cref='System.Windows.Forms.Control.Move'/> event.</para> 9442/// <para>Raises the <see cref='System.Windows.Forms.Control.RegionChanged'/> event when the Region property has changed.</para> 9455/// <para>Raises the <see cref='System.Windows.Forms.Control.Resize'/> event.</para> 9471/// <para>Raises the <see cref='System.Windows.Forms.Control.PreviewKeyDown'/> event.</para> 9504/// <para>Raises the <see cref='System.Windows.Forms.Control.ChangeUICues'/> 9516/// <para>Raises the <see cref='System.Windows.Forms.Control.OnStyleChanged'/> 9528/// <para>Raises the <see cref='System.Windows.Forms.Control.SystemColorsChanged'/> 9551/// <para>Raises the <see cref='System.Windows.Forms.Control.Validating'/> 9563/// <para>Raises the <see cref='System.Windows.Forms.Control.Validated'/> event.</para> 9769Control parent = this.ParentInternal; 9888for (Control c = this.ParentInternal; c != null; c = c.ParentInternal) { 9924public void PerformLayout(Control affectedControl, string affectedProperty) { 10044foreach (Control c in Controls) { 10225internal static PreProcessControlState PreProcessControlMessageInternal(Control target, ref Message msg) { 10227target = Control.FromChildHandleInternal(msg.HWnd); 10392Control child = Controls[i]; 10776Control topMostParent = null; 10973Control [] controlSnapshot = null; 10989controlSnapshot = new Control[controlsCollection.Count]; 10991Control childControl = controlsCollection[i]; 11017Control childControl = controlSnapshot[i]; 11031&& (Control.FromHandleInternal(parentHandle.Handle) == null || this.parent == null) // but wasnt a windows forms window 11096Control control = Control.FromHandleInternal(hWnd); 11321Control c = controlsCollection[i]; 11349internal virtual void Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl) { 11381internal void ScaleChildControls(SizeF includedFactor, SizeF excludedFactor, Control requestingControl, bool updateWindowFontIfNeeded = false) { 11391Control c = controlsCollection[i]; 11431internal void ScaleControl(SizeF includedFactor, SizeF excludedFactor, Control requestingControl) { 11657public bool SelectNextControl(Control ctl, bool forward, bool tabStopOnly, bool nested, bool wrap) { 11658Control nextSelectableControl = this.GetNextSelectableControl(ctl, forward, tabStopOnly, nested, wrap); 11668private Control GetNextSelectableControl(Control ctl, bool forward, bool tabStopOnly, bool nested, bool wrap) { 11672Control start = ctl; 11701internal bool SelectNextControlInternal(Control ctl, bool forward, bool tabStopOnly, bool nested, bool wrap) { 11721((Control)c).SelectNextControlInternal(this, true, true, true, true); 12050Debug.WriteLineIf(Control.PaletteTracing.TraceVerbose, "SetUpPalette(force:=" + force + ", ralizePalette:=" + realizePalette + ")"); 12054Debug.WriteLineIf(Control.PaletteTracing.TraceVerbose, "select palette " + !force); 12216internal static AutoValidate GetAutoValidateForControl(Control control) { 12453/// <para>Determines if the <see cref='System.Windows.Forms.Control.Size'/> property needs to be persisted.</para> 12465/// <para>Determines if the <see cref='System.Windows.Forms.Control.Text'/> property needs to be persisted.</para> 12631private void UpdateChildControlIndex(Control ctl) { 12645Control c = FromHandleInternal(hWnd); 12674ReflectParent = Control.FromHandleInternal(parentHandle); 12695private void UpdateChildZOrder(Control ctl) { 12699Control c = Controls[i]; 12852internal void WmContextMenu(ref Message m, Control sourceControl) { 12903Control control = Control.FromHandleInternal(m.LParam); 13337Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "Control::WmKillFocus - " + this.Name); 13629Control control = Control.FromHandleInternal(handle); 13794Debug.WriteLineIf(Control.PaletteTracing.TraceVerbose, Handle + ": WM_QUERYNEWPALETTE"); 13886Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "Control::WmSetFocus - " + this.Name); 14396else if (m.Msg == Control.WM_GETCONTROLNAME) { 14400else if (m.Msg == Control.WM_GETCONTROLTYPE) { 14564private Control control; 14568internal ControlNativeWindow(Control control) { 14573internal Control GetControl() { 14641if (!control.GetState(Control.STATE_TRACKINGMOUSEEVENT)) { 14643if (!control.GetState(Control.STATE_MOUSEENTERPENDING)) { 14647control.SetState(Control.STATE_MOUSEENTERPENDING, false); 14711private Control owner; 14724public ControlCollection(Control owner) { 14742public virtual void Add(Control value) { 14796Control oldParent = value.parent; 14833if (control is Control) { 14834Add((Control)control); 14835return IndexOf((Control)control); 14847public virtual void AddRange(Control[] controls) { 14886public bool Contains(Control control) { 14897public Control[] Find(string key, bool searchAllChildren) { 14905Control[] stronglyTypedFoundControls = new Control[foundControls.Count]; 14967public int IndexOf(Control control) { 15016public Control Owner { 15027public virtual void Remove(Control value) { 15059if (control is Control) { 15060Remove((Control)control); 15087public new virtual Control this[int index] { 15094Control control = (Control) InnerList[index]; 15104public virtual Control this[string key] { 15155public int GetChildIndex(Control child) { 15166public virtual int GetChildIndex(Control child, bool throwException) { 15179internal virtual void SetChildIndexInternal(Control child, int newIndex) 15211public virtual void SetChildIndex(Control child, int newIndex) { 15411OnHelpRequested(new HelpEventArgs(Control.MousePosition)); 16106return this.ClientRectangle.Contains(this.PointToClient(Control.MousePosition)); 16110Control topLevelControl = TopLevelControlInternal; 16147return Control.AreCommonNavigationalKeysDown(); 16157Control controlParent = this.ParentInternal; 16159Control[] neighboringControls = new Control[4] { 16169foreach (Control neighboringControl in neighboringControls) { 16207return (tempKeyboardStateArray[(int)key] & Control.HighOrderBitMask) != 0; 16284private Control control; 16303internal ActiveXImpl(Control control) { 16566Control target = control; 16582Control realTarget = target.GetChildAtPoint(new Point(pt.x, pt.y)); 16599target.SelectNextControl(null, Control.ModifierKeys != Keys.Shift, true, true, true); 16973private void GetMnemonicList(Control control, ArrayList mnemonicList) { 16983foreach(Control c in control.Controls) { 17470private void CallParentPropertyChanged(Control control, string propName) { 18517Control target = Control.FromChildHandleInternal(lpmsg.hwnd); 19009font = Control.DefaultFont; 19412private Control ownerControl = null; // The associated Control for this AccessibleChild (if any) 19421public ControlAccessibleObject(Control ownerControl) { 19450internal ControlAccessibleObject(Control ownerControl, int accObjId) { 19525Control parentControl = ownerControl.ParentInternal; 19529Control[] ctrls = null; 19767public Control Owner { 19782Control parent = Owner.ParentInternal; 19795for (Control previous = container.GetNextControl(Owner, false); 20035internal Control caller; 20036internal Control marshaler; 20056internal ThreadMethodEntry(Control caller, Control marshaler, Delegate method, Object[] args, bool synchronous, ExecutionContext executionContext) { 20133private Control owner; 20135internal ControlVersionInfo(Control owner) {
winforms\Managed\System\WinForms\Control.Ime.cs (13)
114Control parent = ParentInternal; 218bool val = Control.ignoreWmImeNotify; 227Control.ignoreWmImeNotify = value; 288Control ctl = null; 412if( Control.propagatingImeMode == ImeMode.Inherit ) { 438Debug.WriteLineIf( CompModSwitches.ImeMode.Level >= TraceLevel.Verbose, "Value: " + Control.propagatingImeMode ); 441return Control.propagatingImeMode; 447if (Control.propagatingImeMode != value) { 457Control.propagatingImeMode = value; 631/// <para>Raises the <see cref='System.Windows.Forms.Control.OnImeModeChanged'/> 834Control topMostWinformsParent = TopMostParent; 850if (Control.propagatingImeMode != ImeMode.Inherit) { 1036internal static void TraceImeStatus( Control ctl ) {
winforms\Managed\System\WinForms\ControlBindingsCollection.cs (2)
51public Control Control { 53return this.control as Control;
winforms\Managed\System\WinForms\ControlEvent.cs (3)
23private Control control; 29public Control Control { 39public ControlEventArgs(Control control) {
winforms\Managed\System\WinForms\ControlPaint.cs (2)
2720internal static StringFormat CreateStringFormat( Control ctl, ContentAlignment textAlign, bool showEllipsis, bool useMnemonic ) { 2758internal static TextFormatFlags CreateTextFormatFlags(Control ctl, ContentAlignment textAlign, bool showEllipsis, bool useMnemonic ) {
winforms\Managed\System\WinForms\DataGrid.cs (20)
116private static int defaultFontHeight = Control.DefaultFont.Height; 205Control toBeDisposedEditingControl = null; 3844/// Raises the <see cref='System.Windows.Forms.Control.PaintBackground'/> 3855/// Raises the <see cref='System.Windows.Forms.Control.Layout'/> event which 3892/// Raises the <see cref='System.Windows.Forms.Control.CreateHandle'/> 3910/// Raises the <see cref='System.Windows.Forms.Control.DestroyHandle'/> 3928/// <para>Raises the <see cref='System.Windows.Forms.Control.Enter'/> 3943/// <para>Raises the <see cref='System.Windows.Forms.Control.Leave'/> 3981/// Raises the <see cref='System.Windows.Forms.Control.KeyDown'/> 3993/// <para>Raises the <see cref='System.Windows.Forms.Control.KeyPress'/> event.</para> 4010/// <para>Raises the <see cref='System.Windows.Forms.Control.MouseDown'/> event.</para> 4185/// <para>Creates the <see cref='System.Windows.Forms.Control.MouseLeave'/> 4207/// <para>Raises the <see cref='System.Windows.Forms.Control.MouseMove'/> 4263&& !(((Control.ModifierKeys & Keys.Control) == Keys.Control) && (Control.ModifierKeys & Keys.Alt) == 0)){ 4315/// <para>Raises the <see cref='System.Windows.Forms.Control.MouseUp'/> event.</para> 4352/// <para>Raises the <see cref='System.Windows.Forms.Control.MouseWheel'/> event.</para> 4400/// <para>Raises the <see cref='System.Windows.Forms.Control.Paint'/> 4463/// <para>Raises the <see cref='System.Windows.Forms.Control.Resize'/> event.</para> 6077internal protected virtual void ColumnStartedEditing(Control editingControl) {
winforms\Managed\System\WinForms\DataGridColumn.cs (3)
26void ColumnStartedEditing(Control editingControl); 1150internal protected virtual void ColumnStartedEditing(Control editingControl) { 1156void IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing(Control editingControl) {
winforms\Managed\System\WinForms\DataGridTable.cs (2)
84internal static readonly Font defaultFont = Control.DefaultFont; 657return(headerFont == null ? (this.DataGrid == null ? Control.DefaultFont : this.DataGrid.Font) : headerFont);
winforms\Managed\System\WinForms\DataGridTextBox.cs (5)
79if (e.KeyChar == ' ' && (Control.ModifierKeys & Keys.Shift) == Keys.Shift) 88if ((Control.ModifierKeys & Keys.Control) == Keys.Control && ((Control.ModifierKeys & Keys.Alt) == 0)) 192if (IsInEditOrNavigateMode && (Control.ModifierKeys & Keys.Shift) == Keys.Shift) 203if (IsInEditOrNavigateMode && (Control.ModifierKeys & Keys.Control) == Keys.Control)
winforms\Managed\System\WinForms\DataGridView.cs (6)
302private Control editingControl, latestEditingControl, cachedEditingControl; 2767Point ptMouse = PointToClient(Control.MousePosition); 2780Point ptMouse = PointToClient(Control.MousePosition); 2791Point ptMouse = PointToClient(Control.MousePosition); 2812public Control EditingControl 4859Point mouseCoord = System.Windows.Forms.Control.MousePosition;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
618Control.MouseButtons == MouseButtons.Left)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (2)
1050Control.MouseButtons == MouseButtons.Left) 1099(this.DataGridView.AccessibilityObject as Control.ControlAccessibleObject).NotifyClients(AccessibleEvents.StateChange, objectID, childID);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
2032bool newMouseInDropDownButtonBounds = dropDownButtonRect.Contains(this.DataGridView.PointToClient(Control.MousePosition));
winforms\Managed\System\WinForms\DataGridViewControlCollection.cs (5)
20public class DataGridViewControlCollection : Control.ControlCollection 32public void CopyTo(Control[] array, int index) 38public void Insert(int index, Control value) 44public override void Remove(Control value) 52internal void RemoveInternal(Control value)
winforms\Managed\System\WinForms\DataGridViewEditingControl.cs (2)
77internal class DataGridViewEditingControlAccessibleObject : Control.ControlAccessibleObject 79public DataGridViewEditingControlAccessibleObject(Control ownerControl) : base(ownerControl)
winforms\Managed\System\WinForms\DataGridViewEditingControlShowingEventArgs.cs (3)
15Control control = null; 19public DataGridViewEditingControlShowingEventArgs(Control control, DataGridViewCellStyle cellStyle) 43public Control Control
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
581Control.MouseButtons == MouseButtons.Left &&
winforms\Managed\System\WinForms\DataGridViewMethods.cs (9)
1491internal override void AssignParent(Control value) 2704this.editingControl = (Control)SecurityUtils.SecureCreateInstance(editControlType); 5401protected override Control.ControlCollection CreateControlsInstance() 6056Point ptMouse = PointToClient(Control.MousePosition); 9788Point ptMouse = PointToClient(Control.MousePosition); 16581bool mouseOverToolTipControl = this.toolTipControl.Activated && this.ClientRectangle.Contains(PointToClient(Control.MousePosition)); 26115Point ptMouse = PointToClient(Control.MousePosition); 29192Point ptMouse = PointToClient(Control.MousePosition); 29755Point ptMouse = PointToClient(Control.MousePosition);
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
47this.Thickness = Control.DefaultFont.Height + 9;
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (1)
348internal class DataGridViewTextBoxEditingControlAccessibleObject : Control.ControlAccessibleObject
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (6)
212Font uiFont = Control.DefaultFont; 325this.Controls.AddRange(new Control[] { 533internal Control parent; 543internal ComponentEditorPageSite(Control parent, Type pageClass, IComponent component, ComponentEditorForm form) { 607public Control GetControl() { 712hfontOld = SafeNativeMethods.SelectObject(new HandleRef(null, dc), new HandleRef(Parent, ((Control)Parent).FontHandle));
winforms\Managed\System\WinForms\Design\ComponentEditorPage.cs (1)
246public virtual Control GetControl() {
winforms\Managed\System\WinForms\Design\IWinFormsEditorService.cs (1)
35void DropDownControl(Control control);
winforms\Managed\System\WinForms\DomainUpDown.cs (2)
409/// <para>Handles the <see cref='System.Windows.Forms.Control.KeyPress'/> 733public DomainUpDownAccessibleObject(Control owner) : base(owner) {
winforms\Managed\System\WinForms\DragEvent.cs (3)
22/// Provides data for the <see cref='System.Windows.Forms.Control.DragDrop'/>, <see cref='System.Windows.Forms.Control.DragEnter'/>, or <see cref='System.Windows.Forms.Control.DragOver'/> event.
winforms\Managed\System\WinForms\DragEventHandler.cs (4)
18/// the <see cref='System.Windows.Forms.Control.DragDrop'/>, 19/// <see cref='System.Windows.Forms.Control.DragEnter'/>, or <see cref='System.Windows.Forms.Control.DragOver'/> event of a <see cref='System.Windows.Forms.Control'/>.
winforms\Managed\System\WinForms\DrawToolTipEventArgs.cs (3)
28private readonly Control associatedControl; 39public DrawToolTipEventArgs(Graphics graphics, IWin32Window associatedWindow, Control associatedControl, Rectangle bounds, string toolTipText, 78public Control AssociatedControl
winforms\Managed\System\WinForms\ErrorProvider.cs (17)
33ProvideProperty("IconPadding", typeof(Control)), 34ProvideProperty("IconAlignment", typeof(Control)), 35ProvideProperty("Error", typeof(Control)), 545SetError((Control) entry.Key, (string) entry.Value); 709return extendee is Control && !(extendee is Form) && !(extendee is ToolBar); 743private ControlItem EnsureControlItem(Control control) { 759internal ErrorWindow EnsureErrorWindow(Control parent) { 778public string GetError(Control control) { 792public ErrorIconAlignment GetIconAlignment(Control control) { 806public int GetIconPadding(Control control) { 835public void SetError(Control control, string value) { 843public void SetIconAlignment(Control control, ErrorIconAlignment value) { 851public void SetIconPadding(Control control, int padding) { 876Control parent; 897public ErrorWindow(ErrorProvider provider, Control parent) { 1321Control control; 1340public ControlItem(ErrorProvider provider, Control control, IntPtr id) {
winforms\Managed\System\WinForms\FileDialog.cs (1)
982if (Control.CheckForIllegalCrossThreadCalls && Application.OleRequired() != System.Threading.ApartmentState.STA) {
winforms\Managed\System\WinForms\FlowLayoutPanel.cs (5)
18[ProvideProperty("FlowBreak", typeof(Control))] 66Control control = obj as Control; 72public bool GetFlowBreak(Control control) { 77public void SetFlowBreak(Control control, bool value) {
winforms\Managed\System\WinForms\FolderBrowserDialog.cs (1)
257if (Control.CheckForIllegalCrossThreadCalls && Application.OleRequired() != System.Threading.ApartmentState.STA)
winforms\Managed\System\WinForms\FontDialog.cs (2)
229result = Control.DefaultFont; 652return !Font.Equals(Control.DefaultFont);
winforms\Managed\System\WinForms\Form.cs (37)
380Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "Form::set_Active - " + this.Name); 436Control c = Control.FromHandleInternal(hwnd); 471mdiChild = Control.FromHandleInternal( hwnd ) as Form; 713Control toLayout = DesignMode || ParentInternal == null ? this : ParentInternal; 1014cp.Parent = Control.GetSafeHandle(dialogOwner); 2249internal override Control ParentInternal { 2633Debug.WriteLineIf(Control.FocusTracing.TraceVerbose, "Form::SetVisibleCore(" + value.ToString() + ") - " + this.Name); 3481internal override void AssignParent(Control value) { 3603protected override Control.ControlCollection CreateControlsInstance() { 3612internal override void AfterControlRemoved(Control control, Control oldParent) { 4020Control mdiclient = MdiParentInternal.MdiClient; 4030IntPtr ownerHandle = (dialogOwner != null) ? Control.GetSafeHandle(dialogOwner) : OwnerInternal.Handle; 4034desktop = Screen.FromPoint(Control.MousePosition); 4424Control ctl = this.Controls[index]; 4503desktop = Screen.FromPoint(Control.MousePosition); 4567Control.ControlCollection children = ctlClient.Controls; 4569Control ctl = children[i]; 4717Control activeControl = ActiveControl; 4900foreach (Control c in Controls) { 4995Control button = AcceptButton as Control; 5218foreach(Control c in this.Controls) { 5325if (button is Control) { 5805foreach(Control control in Controls) { 6091else if ( (owner != null) && ((int)UnsafeNativeMethods.GetWindowLong(new HandleRef(owner, Control.GetSafeHandle(owner)), NativeMethods.GWL_EXSTYLE) 6093if (owner is Control) { 6094owner = ((Control)owner).TopLevelControlInternal; 6098IntPtr hWndOwner = owner == null ? hWndActive : Control.GetSafeHandle(owner); 6156else if ( (owner != null) && ((int)UnsafeNativeMethods.GetWindowLong(new HandleRef(owner, Control.GetSafeHandle(owner)), NativeMethods.GWL_EXSTYLE) 6158if (owner is Control) { 6159owner = ((Control)owner).TopLevelControlInternal; 6175IntPtr hWndOwner = owner == null ? hWndActive : Control.GetSafeHandle(owner); 7682public new class ControlCollection : Control.ControlCollection { 7702public override void Add(Control value) { 7732public override void Remove(Control value) {
winforms\Managed\System\WinForms\GiveFeedbackEvent.cs (1)
31/// Provides data for the <see cref='System.Windows.Forms.Control.GiveFeedback'/>
winforms\Managed\System\WinForms\GiveFeedbackEventHandler.cs (2)
17/// Represents the method that handles the <see cref='System.Windows.Forms.Control.GiveFeedback'/> event 18/// of a <see cref='System.Windows.Forms.Control'/>.
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (1)
85public static void DrawParentBackground(Graphics g, Rectangle bounds, Control childControl) {
winforms\Managed\System\WinForms\Help.cs (8)
84public static void ShowHelp(Control parent, string url) { 96public static void ShowHelp(Control parent, string url, HelpNavigator navigator) { 108public static void ShowHelp(Control parent, string url, string keyword) { 126public static void ShowHelp(Control parent, string url, HelpNavigator command, object parameter) { 145public static void ShowHelpIndex(Control parent, string url) { 157public static void ShowPopup(Control parent, string caption, Point location) { 190private static void ShowHTML10Help(Control parent, string url, HelpNavigator command, object param) { 278private static void ShowHTMLFile(Control parent, string url, HelpNavigator command, object param) {
winforms\Managed\System\WinForms\HelpProvider.cs (21)
29ProvideProperty("HelpString", typeof(Control)), 30ProvideProperty("HelpKeyword", typeof(Control)), 31ProvideProperty("HelpNavigator", typeof(Control)), 32ProvideProperty("ShowHelp", typeof(Control)), 105return(target is Control); 120public virtual string GetHelpKeyword(Control ctl) { 136public virtual HelpNavigator GetHelpNavigator(Control ctl) { 153public virtual string GetHelpString(Control ctl) { 168public virtual bool GetShowHelp(Control ctl) { 184Control ctl = (Control)sender; 196if (Control.MouseButtons != MouseButtons.None && helpString != null) { 250Control ctl = (Control)sender; 264public virtual void SetHelpString(Control ctl, string helpString) { 281public virtual void SetHelpKeyword(Control ctl, string keyword) { 298public virtual void SetHelpNavigator(Control ctl, HelpNavigator navigator) { 315public virtual void SetShowHelp(Control ctl, bool value) { 325internal virtual bool ShouldSerializeShowHelp(Control ctl) { 334public virtual void ResetShowHelp(Control ctl) { 343private void UpdateEventBinding(Control ctl) {
winforms\Managed\System\WinForms\IButtonControl.cs (1)
49/// <para>Generates a <see cref='System.Windows.Forms.Control.Click'/>
winforms\Managed\System\WinForms\IContainerControl.cs (2)
26Control ActiveControl { get; set; } 31bool ActivateControl(Control active);
winforms\Managed\System\WinForms\InvalidateEvent.cs (1)
20/// Provides data for the <see cref='System.Windows.Forms.Control.Invalidate'/>
winforms\Managed\System\WinForms\InvalidateEventHandler.cs (2)
18/// Represents the method that will handle the <see cref='System.Windows.Forms.Control.Invalidate'/> event 19/// of a <see cref='System.Windows.Forms.Control'/>.
winforms\Managed\System\WinForms\KeyEvent.cs (10)
22/// Provides data for the <see cref='System.Windows.Forms.Control.KeyDown'/> or <see cref='System.Windows.Forms.Control.KeyUp'/> 104/// Gets the keyboard code for a <see cref='System.Windows.Forms.Control.KeyDown'/> or <see cref='System.Windows.Forms.Control.KeyUp'/> 128/// Gets the keyboard value for a <see cref='System.Windows.Forms.Control.KeyDown'/> or <see cref='System.Windows.Forms.Control.KeyUp'/> 142/// Gets the key data for a <see cref='System.Windows.Forms.Control.KeyDown'/> or <see cref='System.Windows.Forms.Control.KeyUp'/> 155/// Gets the modifier flags for a <see cref='System.Windows.Forms.Control.KeyDown'/> or <see cref='System.Windows.Forms.Control.KeyUp'/> event.
winforms\Managed\System\WinForms\KeyEventHandler.cs (3)
18/// Represents a method that will handle the <see cref='System.Windows.Forms.Control.KeyUp'/> or <see cref='System.Windows.Forms.Control.KeyDown'/> event of a <see cref='System.Windows.Forms.Control'/>.
winforms\Managed\System\WinForms\KeyPressEvent.cs (2)
21/// Provides data for the <see cref='System.Windows.Forms.Control.KeyPress'/> 73/// Gets or sets a value indicating whether the <see cref='System.Windows.Forms.Control.KeyPress'/>
winforms\Managed\System\WinForms\KeyPressEventHandler.cs (2)
20/// Represents a method that will handle the <see cref='System.Windows.Forms.Control.KeyPress'/> event of a 21/// <see cref='System.Windows.Forms.Control'/>.
winforms\Managed\System\WinForms\Label.cs (4)
819return((Control) this).RenderTransparent; 1394/// Raises the <see cref='System.Windows.Forms.Control.OnMouseEnter'/> event. 1419/// Raises the <see cref='System.Windows.Forms.Control.OnMouseLeave'/> event. 1643Control parent = ParentInternal;
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (3)
232using (new LayoutTransaction(element.Container as Control, element, PropertyNames.MinimumSize)) { 457if (element.Container is Control) { 458if (((Control)element.Container).LayoutEngine is DefaultLayout) {
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (4)
16using ControlCollection = System.Windows.Forms.Control.ControlCollection; 514Control control = container as Control; 677using (new LayoutTransaction(element.Container as Control, element, PropertyNames.Dock)) {
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (2)
330if (_container is Control) { 331_isContainerRTL = ((Control)(_container)).RightToLeft == RightToLeft.Yes;
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (4)
670Control _controlToLayout; 676public LayoutTransaction(Control controlToLayout, IArrangedElement controlCausingLayout, string property) : 680public LayoutTransaction(Control controlToLayout, IArrangedElement controlCausingLayout, string property, bool resumeLayout) { 713public static IDisposable CreateTransactionIf(bool condition, Control controlToLayout, IArrangedElement elementCausingLayout, string property) {
winforms\Managed\System\WinForms\Layout\TableLayout.cs (3)
1158if (containerInfo.Container is Control) { 1159Control control = containerInfo.Container as Control;
winforms\Managed\System\WinForms\LayoutEvent.cs (3)
26public LayoutEventArgs(Control affectedControl, string affectedProperty) 41public Control AffectedControl { 43return affectedComponent as Control;
winforms\Managed\System\WinForms\LinkLabel.cs (9)
893/// Raises the <see cref='System.Windows.Forms.Control.GotFocus'/> 931/// Raises the <see cref='System.Windows.Forms.Control.LostFocus'/> 946/// Raises the <see cref='System.Windows.Forms.Control.OnKeyDown'/> 963/// Raises the <see cref='System.Windows.Forms.Control.OnMouseLeave'/> 991/// Raises the <see cref='System.Windows.Forms.Control.OnMouseDown'/> 1021/// Raises the <see cref='System.Windows.Forms.Control.OnMouseUp'/> 1057/// Raises the <see cref='System.Windows.Forms.Control.OnMouseMove'/> 1124/// Raises the <see cref='System.Windows.Forms.Control.OnPaint'/> 1794return !CanUseTextRenderer || UseCompatibleTextRendering != Control.UseCompatibleTextRenderingDefault;
winforms\Managed\System\WinForms\ListView.cs (2)
2516odCacheFontHandleWrapper = new Control.FontHandleWrapper(odCacheFont); 2851odCacheFontHandleWrapper = new Control.FontHandleWrapper(subItemFont);
winforms\Managed\System\WinForms\ListViewItem.cs (2)
447return Control.DefaultFont; 1546return Control.DefaultFont;
winforms\Managed\System\WinForms\MaskedTextBox.cs (3)
2043/// Raises the <see cref='System.Windows.Forms.Control.KeyDown'/> event. 2176/// Raises the <see cref='System.Windows.Forms.Control.KeyPress'/> event. 2251/// <para>Raises the <see cref='System.Windows.Forms.Control.KeyUp'/> event.</para>
winforms\Managed\System\WinForms\MDIClient.cs (5)
156protected override Control.ControlCollection CreateControlsInstance() { 254Control ctl = Controls[i]; 401new public class ControlCollection : Control.ControlCollection { 430public override void Add(Control value) { 448public override void Remove(Control value) {
winforms\Managed\System\WinForms\MDIControlStrip.cs (8)
36IntPtr hMenu= UnsafeNativeMethods.GetSystemMenu(new HandleRef(this, Control.GetSafeHandle(target)), /*bRevert=*/false); 48Control controlTarget = target as Control; 131IntPtr hIcon = UnsafeNativeMethods.SendMessage(new HandleRef(this, Control.GetSafeHandle(target)), NativeMethods.WM_GETICON, NativeMethods.ICON_SMALL, 0); 167IntPtr hMenu= UnsafeNativeMethods.GetSystemMenu(new HandleRef(this, Control.GetSafeHandle(target)), /*bRevert=*/false); 185system.DropDown = ToolStripDropDownMenu.FromHMenu(UnsafeNativeMethods.GetSystemMenu(new HandleRef(this, Control.GetSafeHandle(target)), /*bRevert=*/false), target); 206Control controlTarget = target as Control;
winforms\Managed\System\WinForms\MenuItem.cs (3)
1365/// Generates a <see cref='System.Windows.Forms.Control.Click'/> 1493Debug.WriteLineIf(Control.PaletteTracing.TraceVerbose, Handle + ": Force set palette in MenuItem drawitem"); 1494IntPtr oldPal = Control.SetUpPalette(dis.hDC, false /*force*/, false);
winforms\Managed\System\WinForms\MessageBox.cs (1)
461handle = Control.GetSafeHandle(owner);
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
2646public MonthCalendarAccessibleObject(Control owner)
winforms\Managed\System\WinForms\NotifyIcon.cs (1)
825OnMouseMove(new MouseEventArgs(Control.MouseButtons, 0, 0, 0, 0));
winforms\Managed\System\WinForms\OwnerDrawPropertyBag.cs (2)
34Control.FontHandleWrapper fontWrapper = null; 102fontWrapper = new Control.FontHandleWrapper(Font);
winforms\Managed\System\WinForms\PaintEvent.cs (2)
21/// Provides data for the <see cref='System.Windows.Forms.Control.Paint'/> 133oldPal = Control.SetUpPalette(dc, false /*force*/, false /*realize*/);
winforms\Managed\System\WinForms\PaintEventHandler.cs (2)
18/// Represents the method that will handle the <see cref='System.Windows.Forms.Control.Paint'/>event of a <see cref='System.Windows.Forms.Control'/>class.
winforms\Managed\System\WinForms\PopupEventArgs.cs (3)
25private Control associatedControl; 33public PopupEventArgs(IWin32Window associatedWindow, Control associatedControl, bool isBalloon, Size size) 56public Control AssociatedControl {
winforms\Managed\System\WinForms\PreviewKeyDownEventArgs.cs (8)
61/// Gets the keyboard code for a <see cref='System.Windows.Forms.Control.KeyDown'/> or <see cref='System.Windows.Forms.Control.KeyUp'/> 85/// Gets the keyboard value for a <see cref='System.Windows.Forms.Control.KeyDown'/> or <see cref='System.Windows.Forms.Control.KeyUp'/> 99/// Gets the key data for a <see cref='System.Windows.Forms.Control.KeyDown'/> or <see cref='System.Windows.Forms.Control.KeyUp'/> 112/// Gets the modifier flags for a <see cref='System.Windows.Forms.Control.KeyDown'/> or <see cref='System.Windows.Forms.Control.KeyUp'/> event.
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (2)
941/// Indicates whether the <see cref='System.Windows.Forms.Control.BackColor'/> property should be 952/// Indicates whether the <see cref='System.Windows.Forms.Control.ForeColor'/> property should be
winforms\Managed\System\WinForms\PropertyGrid.cs (8)
269Controls.AddRange(new Control[] { doccomment, hotcommands, gridView, toolStrip }); 2343private static void DrawXorBar(Control ctlDrawTo, Rectangle rcFrame) { 2612internal Control GetElementFromPoint(Point point) { 2789if (ShouldForwardChildMouseMessage((Control)sender, me, ref newPt)) { 2803if (ShouldForwardChildMouseMessage((Control)sender, me, ref newPt)) { 4655private bool ShouldForwardChildMouseMessage(Control child, MouseEventArgs me, ref Point pt) { 5415internal class PropertyGridAccessibleObject : Control.ControlAccessibleObject { 5441var element = _owningPropertyGrid.GetElementFromPoint(clientPoint);
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (1)
248internal class DocCommentAccessibleObject : Control.ControlAccessibleObject {
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (1)
228internal class DropDownButtonAccessibleObject : Control.ControlAccessibleObject {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
2953return((Control)this.owner.GridEntryHost).AccessibilityObject;
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (3)
91foreach( Control c in this.Controls ){ 335Control parent = detailsBtn.Parent; 372internal class DetailsButtonAccessibleObject: Control.ControlAccessibleObject {
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (7)
28Control[] controls; 36internal GridToolTip(Control[] controls) { 121private NativeMethods.TOOLINFO_T GetTOOLINFO(Control c) { 155SetupToolTip((Control)sender); 160UnsafeNativeMethods.SendMessage(new HandleRef(this, Handle), NativeMethods.TTM_DELTOOL, 0, GetTOOLINFO((Control)sender)); 173internal void PositionToolTip(Control parent, Rectangle itemRect) { 202private void SetupToolTip(Control c) {
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (1)
235internal class HotCommandsAccessibleObject : Control.ControlAccessibleObject {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (28)
126private Control currentEditor = null; 760toolTip = new GridToolTip(new Control[]{this, Edit}); 1032protected virtual void CommonEditorSetup(Control ctl) { 1038protected virtual void CommonEditorUse(Control ctl, Rectangle rectTarget) { 1678public void /* cpr IWindowsFormsEditorService. */ DropDownControl(Control ctl) { 1791Control ctl = dropDownHolder.Component; 2295private bool IsMyChild(Control c) { 2301Control cParent = c.ParentInternal; 2331internal bool IsSiblingControl(Control c1, Control c2) { 2333Control parent1 = c1.ParentInternal; 2334Control parent2 = c2.ParentInternal; 2825private bool OnF4(Control sender) { 2837private bool OnEscape(Control sender) { 3975Control focusedControl = Control.FromHandleInternal(UnsafeNativeMethods.GetFocus()); 3980focusedControl = Control.FromHandleInternal(UnsafeNativeMethods.GetFocus()); 4425Control btn = fBtnDropDown ? (Control)DropDownButton : (Control)DialogButton; 4918Control topControl = this; 5442private Control currentControl = null; // the control that is hosted in the holder 5584public virtual Control Component { 5949public void SetComponent(Control ctl, bool resizable) { 7074private Control control; 7084public MouseHook(Control control, IMouseHookClient client, PropertyGridView gridView) { 7230Control ctrlAtPoint = Control.FromHandleInternal(hWndAtPoint);
winforms\Managed\System\WinForms\QueryContinueDragEvent.cs (1)
21/// Provides data for the <see cref='System.Windows.Forms.Control.QueryContinueDrag'/>
winforms\Managed\System\WinForms\QueryContinueDragEventHandler.cs (2)
18/// Represents the method that will handle the <see cref='System.Windows.Forms.Control.QueryContinueDrag'/> 20/// <see cref='System.Windows.Forms.Control'/>.
winforms\Managed\System\WinForms\RadioButton.cs (7)
501Control parent = ParentInternal; 503Control.ControlCollection children = parent.Controls; 505Control ctl = children[i]; 525 Control parent = ParentInternal; 527Control.ControlCollection children = parent.Controls; 529Control ctl = children[i]; 592/// Generates a <see cref='System.Windows.Forms.Control.Click'/> event for the
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (1)
84public static void DrawParentBackground(Graphics g, Rectangle bounds, Control childControl) {
winforms\Managed\System\WinForms\RichTextBox.cs (6)
3872MouseButtons b = Control.MouseButtons; 3873Keys k = Control.ModifierKeys; 3910Control.MousePosition.X, 3911Control.MousePosition.Y, 3999Control.MousePosition.X, 4000Control.MousePosition.Y,
winforms\Managed\System\WinForms\Screen.cs (3)
344public static Screen FromControl(Control control) { 401public static Rectangle GetWorkingArea(Control ctl) { 432public static Rectangle GetBounds(Control ctl) {
winforms\Managed\System\WinForms\ScrollableControl.cs (9)
459Control current = Controls[i]; 472switch (((Control)current).Dock) { 515Control current = Controls[i]; 522Control richCurrent = (Control)current; 776EventHandler handler = (EventHandler)Events[Control.EventPaddingChanged]; 893Control ctl = Controls[i]; 905public void ScrollControlIntoView(Control activeControl) { 943protected virtual Point ScrollToControl(Control activeControl) {
winforms\Managed\System\WinForms\SendKeys.cs (2)
870private static void Send(string keys, Control control, bool wait) { 954private static void SendWait(string keys, Control control) {
winforms\Managed\System\WinForms\SplitContainer.cs (18)
107Control nextActiveControl = null; 402public new Control.ControlCollection Controls { 1691Control group = this; 1921Control parent = this.ParentInternal; 1940private bool SelectNextControlInContainer(Control ctl, bool forward, bool tabStopOnly, 1943Control start = ctl; 2002Control parent = this.ParentInternal; 2025private bool SelectNextControlInPanel(Control ctl, bool forward, bool tabStopOnly, 2029Control start = ctl; 2075private static void SelectNextActiveControl(Control ctl, bool forward, bool tabStopOnly, bool nested, bool wrap) 2106foreach(Control ctl in sc.Controls) { 2109foreach (Control c in ctl.Controls) { 2386internal override void AfterControlRemoved(Control control, Control oldParent) { 2520protected override Control.ControlCollection CreateControlsInstance() { 2572public SplitContainerTypedControlCollection(Control c, Type type, bool isReadOnly): base(c, type, isReadOnly) 2577public override void Remove(Control value) { 2586internal override void SetChildIndexInternal(Control child, int newIndex)
winforms\Managed\System\WinForms\Splitter.cs (16)
49private Control splitTarget; 693Control target = FindTarget(); 715Control target = FindTarget(); 728Control parent = ParentInternal; 729Control.ControlCollection children = parent.Controls; 733Control ctl = children[i]; 735switch (((Control)ctl).Dock) { 803private Control FindTarget() { 804Control parent = ParentInternal; 806Control.ControlCollection children = parent.Controls; 810Control target = children[i]; 814if (target.Bottom == Top) return(Control)target; 817if (target.Top == Bottom) return(Control)target; 820if (target.Right == Left) return(Control)target; 823if (target.Left == Right) return(Control)target; 1064internal Control target;
winforms\Managed\System\WinForms\SplitterPanel.cs (1)
315public new Control Parent {
winforms\Managed\System\WinForms\StatusBar.cs (7)
685/// Raises the <see cref='System.Windows.Forms.Control.CreateHandle'/> 1111Control parent = ParentInternal; 1127Control.ControlCollection children = parent.Controls; 1130Control ctl = children[i]; 1661private Control parent = null; 1668public ControlToolTip(Control parent) { 1882Control richParent = parent;
winforms\Managed\System\WinForms\StatusStrip.cs (1)
163private Control RTLGrip {
winforms\Managed\System\WinForms\SystemInformation.cs (1)
400menuFont = Control.DefaultFont;
winforms\Managed\System\WinForms\TabControl.cs (6)
1094protected override Control.ControlCollection CreateControlsInstance() { 1197public Control GetControl(int index) { 1198return(Control) GetTabPage(index); 2713public new class ControlCollection : Control.ControlCollection { 2733public override void Add(Control value) { 2782public override void Remove(Control value) {
winforms\Managed\System\WinForms\TableLayoutPanel.cs (23)
21[ProvideProperty("ColumnSpan", typeof(Control))] 22[ProvideProperty("RowSpan", typeof(Control))] 23[ProvideProperty("Row", typeof(Control))] 24[ProvideProperty("Column", typeof(Control))] 25[ProvideProperty("CellPosition", typeof(Control))] 201protected override Control.ControlCollection CreateControlsInstance() { 214Control control = obj as Control; 223public int GetColumnSpan(Control control) { 228public void SetColumnSpan(Control control, int value) { 239public int GetRowSpan(Control control) { 244public void SetRowSpan(Control control, int value) { 257public int GetRow(Control control) { 263public void SetRow(Control control, int row) { 275public TableLayoutPanelCellPosition GetCellPosition(Control control) { 281public void SetCellPosition(Control control, TableLayoutPanelCellPosition position) { 294public int GetColumn(Control control) { 300public void SetColumn(Control control, int column) { 309public Control GetControlFromPosition (int column, int row) { 310return (Control)_tableLayoutSettings.GetControlFromPosition(column, row); 314public TableLayoutPanelCellPosition GetPositionFromControl (Control control) { 564public class TableLayoutControlCollection : Control.ControlCollection { 580public virtual void Add(Control control, int column, int row) {
winforms\Managed\System\WinForms\TableLayoutSettings.cs (5)
450Control c = element as Control; 519Control appliedControl = containerInfo.Container as Control; 530foreach (Control tableControl in appliedControl.Controls) {
winforms\Managed\System\WinForms\TableLayoutStyle.cs (4)
35Control owner = Owner as Control; 54Control owner = Owner as Control;
winforms\Managed\System\WinForms\TabPage.cs (8)
156protected override Control.ControlCollection CreateControlsInstance () { 531internal override void AssignParent (Control value) { 545if (!(comp is Control)) { 549Control c = (Control)comp; 740Control parent = ParentInternal; 787public class TabPageControlCollection : Control.ControlCollection { 804public override void Add (Control value) {
winforms\Managed\System\WinForms\TextBox.cs (1)
637if (SelectionLength == 0 && Control.MouseButtons == MouseButtons.None) {
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
2228Debug.WriteLineIf(Control.ControlKeyboardRouting.TraceVerbose, "TextBox wants tabs"); 2232Debug.WriteLineIf(Control.ControlKeyboardRouting.TraceVerbose, "TextBox doesn't want tabs");
winforms\Managed\System\WinForms\ToolStrip.cs (11)
483Control p = ParentInternal; 572public new Control.ControlCollection Controls { 2628internal virtual Control GetOwnerControl() { 3021if (!inMenuMode && Control.ModifierKeys == Keys.Alt) { 3068if (Control.IsMnemonic(charCode,currentItem.Text)) { 3994public new Control GetChildAtPoint(Point point) { 3999public new Control GetChildAtPoint(Point pt, GetChildAtPointSkip skipValue) { 4006internal override Control GetFirstChildControlInTabOrder(bool forward) { 4114Control c = Control.FromHandleInternal(hwndThatLostFocus); 4798protected override Control.ControlCollection CreateControlsInstance() {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (4)
61public ToolStripComboBox(Control c) : base(c) { 128private static Control CreateControlInstance() { 558protected override void OnSubscribeControlEvents(Control control) { 575protected override void OnUnsubscribeControlEvents(Control control) {
winforms\Managed\System\WinForms\ToolStripContainer.cs (9)
391public new Control.ControlCollection Controls { 398protected override Control.ControlCollection CreateControlsInstance() { 418foreach (Control c in this.Controls) { 422foreach (Control c in this.Controls) { 432foreach(Control c in Controls) { 450public ToolStripContainerTypedControlCollection(Control c, bool isReadOnly) 455public override void Add(Control value) { 469public override void Remove(Control value) { 478internal override void SetChildIndexInternal(Control child, int newIndex) {
winforms\Managed\System\WinForms\ToolStripControlHost.cs (6)
26private Control control; 47public ToolStripControlHost(Control c) { 66public ToolStripControlHost(Control c, string name) : this (c){ 159public Control Control { 872protected virtual void OnSubscribeControlEvents(Control control) { 921protected virtual void OnUnsubscribeControlEvents(Control control) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (6)
935internal Control SourceControlInternal { 937return Properties.GetObject(PropSourceControl) as Control; 1711foreach(Control control in Controls) { 2038public void Show(Control control, Point position) { 2056public void Show(Control control, Point position, ToolStripDropDownDirection direction) { 2068public void Show(Control control, int x, int y) {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (2)
126if ((Control.ModifierKeys != Keys.Alt) && 142if ((Control.ModifierKeys != Keys.Alt) &&
winforms\Managed\System\WinForms\ToolStripGrip.cs (3)
129return (Control.MouseButtons == MouseButtons.Left) && (Control.ModifierKeys == Keys.None); 253private static void SetCursor(Control control, Cursor cursor) {
winforms\Managed\System\WinForms\ToolStripItem.cs (8)
547Control p = ParentInternal; 551return Control.DefaultBackColor; 1019Control p = ParentInternal; 1023return Control.DefaultForeColor; 1429Control parent = ParentInternal; 2492if (Control.ModifierKeys == Keys.Alt) { 3991return ((IKeyboardToolTip)this).GetNativeScreenRectangle().Contains(Control.MousePosition); 4475} while (sibling != null && sibling is Control.ControlAccessibleObject);
winforms\Managed\System\WinForms\ToolStripManager.cs (31)
102sysFont = Control.DefaultFont; 255private static bool IsOnSameWindow(Control control1, Control control2) { 619internal static ToolStripPanel ToolStripPanelFromPoint(Control draggedControl, Point screenLocation) { 791Control control = null; 795control = Control.FromHandleInternal(_activeHwnd.Handle); 804control = Control.FromHandleInternal(_activeHwnd.Handle); 916Control control = Control.FromHandleInternal(ActiveHwnd.Handle); 978Control topLevel = sender as Control; 984ToolStrip toolStrip = Control.FromHandleInternal(m.HWnd) as ToolStrip; 1257else if (!(Control.FromChildHandleInternal(hwndCurrentActiveWindow.Handle) is ToolStripDropDown) // its NOT a dropdown 1283Control control = Control.FromChildHandleInternal(m.HWnd); 1531Debug.WriteLineIf(Control.ControlKeyboardRouting.TraceVerbose, "ToolStripManager.ProcessCmdKey - processing: [" + keyData.ToString() + "]"); 1537Debug.WriteLineIf(Control.ControlKeyboardRouting.TraceVerbose, "ToolStripManager.ProcessCmdKey - IsValidShortcut: [" + keyData.ToString() + "]"); 1542Debug.WriteLineIf(Control.ControlKeyboardRouting.TraceVerbose, "ToolStripManager.ProcessCmdKey - Checking if it's a menu key: [" + keyData.ToString() + "]"); 1559Control activeControl = Control.FromChildHandleInternal(m.HWnd); 1560Control activeControlInChain = activeControl; 1563Debug.WriteLineIf(Control.ControlKeyboardRouting.TraceVerbose, "ToolStripManager.ProcessShortcut - processing: [" + shortcut.ToString() + "]"); 1572Debug.WriteLineIf(Control.ControlKeyboardRouting.TraceVerbose, "ToolStripManager.ProcessShortcut - found item on context menu: [" + item.ToString() + "]"); 1647Form mainForm = Control.FromHandleInternal(rootWindowOfControl.Handle) as Form; 1664Debug.WriteLineIf(Control.ControlKeyboardRouting.TraceVerbose, "ToolStripManager.ProcessShortcut - found item on toolstrip: [" + item.ToString() + "]"); 1690Debug.WriteLineIf(Control.ControlKeyboardRouting.TraceVerbose, "ToolStripManager.ProcessMenuKey: [" + m.ToString() + "]"); 1701Control intendedControl = Control.FromHandleInternal(m.HWnd); 1702Control toplevelControl = null; 1764internal static MenuStrip GetMainMenuStrip(Control control) { 1780private static MenuStrip GetFirstMenuStripRecursive(Control.ControlCollection controlsToLookIn) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
114this.targetWindowHandle = Control.GetSafeHandle(targetWindow); 1203targetWindowHandle = Control.GetSafeHandle(window);
winforms\Managed\System\WinForms\ToolStripPanel.cs (18)
457protected override Control.ControlCollection CreateControlsInstance() { 552if (e.AffectedComponent != ParentInternal && e.AffectedComponent as Control != null) { 584Control[] controls = new Control[this.Controls.Count]; 588foreach (Control control in row.ControlsInternal) { 670Control[] controlArray = new Control[controls.Count]; 1271foreach (Control c1 in this.Controls) { 1272foreach (Control c2 in this.Controls) { 1545internal override void AddInternal(Control value) { 1571Control one = first as Control; 1572Control two = second as Control; 1593Control one = first as Control; 1594Control two = second as Control;
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (3)
40public ToolStripPanelCell(Control control):this(null, control) { 43public ToolStripPanelCell(ToolStripPanelRow parent, Control control) { 74public Control Control {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (35)
93public Control[] Controls { 95Control[] controls = new Control[ControlsInternal.Count]; 223internal Control ParentInternal { 297protected internal virtual void OnControlAdded(Control control, int index) { 322protected internal virtual void OnControlRemoved(Control control, int index) { 778foreach (Control c in Row.ControlsInternal) { 914protected internal virtual void OnControlAdded(Control c, int index) { 917protected internal virtual void OnControlRemoved(Control c, int index) { 1262protected internal override void OnControlAdded(Control control, int index) { 1265protected internal override void OnControlRemoved(Control control, int index) { 1301Control controlToPushAside = Row.ControlsInternal[index]; 1790protected internal override void OnControlRemoved(Control c, int index) { 1794protected internal override void OnControlAdded(Control control, int index) { 1830Control controlToPushAside = Row.ControlsInternal[index]; 2008public ToolStripPanelRowControlCollection(ToolStripPanelRow owner, Control[] value) { 2014public new virtual Control this[int index] { 2042public int Add(Control value) { 2064public void AddRange(Control[] value) { 2091public bool Contains(Control value) { 2123private Control GetControl(int index) { 2124Control control = null; 2134private int IndexOfControl(Control c) { 2158void IList.Remove(object value) { Remove(value as Control); } 2160int IList.Add(object value) { return Add(value as Control); } 2162int IList.IndexOf(object value) { return IndexOf(value as Control); } 2164void IList.Insert(int index, object value) { Insert(index, value as Control); } 2170public int IndexOf(Control value) { 2184public void Insert(int index, Control value) { 2200private void OnAfterRemove(Control control, int index) { 2225Control control = controlToBeDragged as Control; 2249public void Remove(Control value) { 2261Control control = GetControl(index); 2273public void CopyTo(Control[] array, int index) {
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (3)
968private void RenderBackgroundGradient(Graphics g, Control control, Color beginColor, Color endColor) { 972private void RenderBackgroundGradient(Graphics g, Control control, Color beginColor, Color endColor, Orientation orientation) { 981Control parent = control.ParentInternal;
winforms\Managed\System\WinForms\ToolStripProgressBar.cs (3)
272private static Control CreateControlInstance() { 288protected override void OnSubscribeControlEvents(Control control) { 300protected override void OnUnsubscribeControlEvents(Control control) {
winforms\Managed\System\WinForms\ToolStripRenderer.cs (1)
1066internal bool ShouldPaintBackground (Control control) {
winforms\Managed\System\WinForms\ToolStripRendererSwitcher.cs (4)
29public ToolStripRendererSwitcher(Control owner, ToolStripRenderMode defaultRenderMode) : this(owner) { 35public ToolStripRendererSwitcher(Control owner) { 137Control control = sender as Control;
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (1)
44private static Control CreateControlInstance(bool up) {
winforms\Managed\System\WinForms\ToolStripSettings.cs (8)
209foreach (Control c in toolStripPanel.Controls) { 287private ArrayList FindControls(Type baseType, bool searchAllChildren, Control.ControlCollection controlsToLookIn, ArrayList foundControls) { 328private ArrayList FindToolStripPanels(bool searchAllChildren, Control.ControlCollection controlsToLookIn) { 332private ArrayList FindToolStrips(bool searchAllChildren, Control.ControlCollection controlsToLookIn) { 344private void ResumeAllLayout(Control start, bool performLayout) { 345Control.ControlCollection controlsCollection = start.Controls; 354private void SuspendAllLayout(Control start) { 357Control.ControlCollection controlsCollection = start.Controls;
winforms\Managed\System\WinForms\ToolStripTextBox.cs (5)
55public ToolStripTextBox(Control c): base(c) { 156private static Control CreateControlInstance() { 218protected override void OnSubscribeControlEvents(Control control) { 237protected override void OnUnsubscribeControlEvents(Control control) { 904private class ToolStripTextBoxControlAccessibleObject : Control.ControlAccessibleObject {
winforms\Managed\System\WinForms\ToolTip.cs (70)
40ProvideProperty("ToolTip", typeof(Control)), 65Control topLevelControl = null; 179internal string GetCaptionForTool(Control tool) { 350Control windowControl = window as Control; 587private Control TopLevelControl { 589Control baseVar = null; 591Control[] regions = new Control[tools.Keys.Count]; 595Control ctl = regions[i]; 740Control control = (Control)sender; 750private void CheckNativeToolTip(Control associatedControl) { 795private void CheckCompositeControls(Control associatedControl) { 802Control control = (Control)sender; 852if (target is Control && 942Control[] ctls = new Control[tools.Keys.Count]; 955Control[] ctls = new Control[tools.Keys.Count]; 967private void SetToolInfo(Control ctl, string caption) { 994private void CreateRegion(Control ctl) { 1017Control ctl = (Control)sender; 1046private void DestroyRegion(Control ctl) { 1135private NativeMethods.TOOLINFO_TOOLTIP GetMinTOOLINFO(Control ctl) { 1160private NativeMethods.TOOLINFO_TOOLTIP GetTOOLINFO(Control ctl, string caption, out bool allocatedString) { 1168Control richParent = TopLevelControl; 1208Control richParent = TopLevelControl; 1234public string GetToolTip(Control control) { 1254Control baseVar = TopLevelControl; 1262Control currentControl = Control.FromHandleInternal(hwndControl); 1294baseVar = Control.FromHandleInternal(found); 1296baseVar = Control.FromChildHandleInternal(found); 1309Control ctl = Control.FromHandleInternal(hwnd); 1311Control current = ctl; 1360Control[] regions = new Control[tools.Keys.Count]; 1423public void SetToolTip(Control control, string caption) { 1436private void SetToolTipInternal(Control control, TipInfo info) { 1554Control associatedControl = win as Control; 1660UnsafeNativeMethods.GetWindowRect(new HandleRef(window, Control.GetSafeHandle(window)), ref r); 1687UnsafeNativeMethods.GetWindowRect(new HandleRef(window, Control.GetSafeHandle(window)), ref r); 1712UnsafeNativeMethods.GetWindowRect(new HandleRef(window, Control.GetSafeHandle(window)), ref r); 1737UnsafeNativeMethods.GetWindowRect(new HandleRef(window, Control.GetSafeHandle(window)), ref r); 1959IntPtr hWnd = Control.GetSafeHandle(win); 1966Control tool = win as Control; 2001Control[] ctls = new Control[owners.Values.Count]; 2009Control tool = win as Control; 2064IntPtr hWnd = Control.GetSafeHandle(win); 2194win = (IWin32Window)Control.FromHandleInternal(ti.hwnd); 2239win = (IWin32Window)Control.FromHandleInternal(ti.hwnd); 2247UnsafeNativeMethods.GetWindowRect(new HandleRef(win, Control.GetSafeHandle(win)), ref r); 2295win = (IWin32Window)Control.FromHandleInternal(ti.hwnd); 2302Control toolControl = win as Control; 2405win = (IWin32Window)Control.FromHandleInternal(ti.hwnd); 2499win = (IWin32Window)Control.FromHandleInternal(ti.hwnd); 2506Control control = win as Control; 2613Control ac = Control.FromHandleInternal(ti.hwnd); 2625font = Control.DefaultFont;
winforms\Managed\System\WinForms\TrackBar.cs (1)
966/// <para>Raises the <see cref='System.Windows.Forms.Control.MouseWheel'/> event.</para>
winforms\Managed\System\WinForms\UICuesEvent.cs (1)
65/// Provides data for the <see cref='System.Windows.Forms.Control.ChangeUICues'/> event.
winforms\Managed\System\WinForms\UICuesEventHandler.cs (2)
13/// Represents a method that will handle the <see cref='System.Windows.Forms.Control.ChangeUICues'/> event of a <see cref='System.Windows.Forms.Control'/>.
winforms\Managed\System\WinForms\UpDownBase.cs (10)
105Controls.AddRange(new Control[] { upDownButtons, upDownEdit} ); 862/// <para>Raises the <see cref='System.Windows.Forms.Control.KeyDown'/> 891/// <para>Raises the <see cref='System.Windows.Forms.Control.KeyPress'/> 901/// <para>Raises the <see cref='System.Windows.Forms.Control.LostFocus'/> event.</para> 911/// <para>Raises the <see cref='System.Windows.Forms.Control.Resize'/> event.</para> 946/// Raises the <see cref='System.Windows.Forms.Control.OnMouseDown'/> event. 959/// Raises the <see cref='System.Windows.Forms.Control.OnMouseUp'/> event. 984/// <para>Raises the <see cref='System.Windows.Forms.Control.OnMouseWheel'/> event.</para> 1160private MouseEventArgs TranslateMouseEvent(Control child, MouseEventArgs e) { 1341/// <para>Raises the <see cref='System.Windows.Forms.Control.KeyUp'/>
winforms\Managed\System\WinForms\UserControl.cs (1)
107Control toLayout = DesignMode || ParentInternal == null ? this : ParentInternal;
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (1)
436public void DrawParentBackground(IDeviceContext dc, Rectangle bounds, Control childControl) {
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1843int keyCode = (int)msg.wParam | (int)Control.ModifierKeys;
winforms\Managed\System\WinForms\WebBrowserBase.cs (3)
529Control parent = ParentInternal; 1220for (Control control = this; control != null; control = control.ParentInternal) { 1227cc = Control.FromHandle(UnsafeNativeMethods.GetParent(new HandleRef(this, Handle))) as ContainerControl;
winforms\Managed\System\WinForms\WebBrowserContainer.cs (13)
171Control[] ctls = new Control[components.Keys.Count]; 175Control ctl = ctls[i]; 221if (comp is Control && comp != parent && comp.Site != null) { 232Control[] ctls = new Control[containerCache.Values.Count]; 249private void GetAllChildren(Control ctl) { 260foreach(Control c in ctl.Controls) { 287Control c = e.Component as Control; 296internal void AddControl(Control ctl) { 314internal void RemoveControl(Control ctl) { 337internal string GetNameForControl(Control ctl) {
winforms\Managed\System\WinForms\WebBrowserHelper.cs (1)
151internal static ISelectionService GetSelectionService(Control ctl) {
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (1)
178bool f = ((Control)this.Host).PreProcessControlMessage(ref msg) == PreProcessControlState.MessageProcessed;
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (2)
22private Control controlToSendTo; 47private WindowsFormsSynchronizationContext(Control marshalingControl, Thread destinationThread) {
winforms\Managed\System\WinForms\WinFormsUtils.cs (14)
233internal static string AssertControlInformation(bool condition, Control control) { 293public static HandleRef GetRootHWnd(Control control) { 329public static Point TranslatePoint(Point point, Control fromControl, Control toControl) { 488internal class ReadOnlyControlCollection : Control.ControlCollection { 493public ReadOnlyControlCollection(Control owner, bool isReadOnly) : base(owner) { 497public override void Add(Control value) { 504internal virtual void AddInternal(Control value) { 515internal virtual void RemoveInternal(Control value) { 538private Control ownerControl; 540public TypedControlCollection(Control owner, Type typeOfControl, bool isReadOnly) : base(owner, isReadOnly) { 545public TypedControlCollection(Control owner, Type typeOfControl) : base(owner, /*isReadOnly*/false) { 550public override void Add(Control value) { 552Control.CheckParentingCycle(ownerControl, value);
System.Windows.Forms.DataVisualization (1)
WinForm\Utilities\AccessibleObject.cs (1)
36internal class ChartAccessibleObject : Control.ControlAccessibleObject
System.Workflow.Activities (2)
Rules\Design\Dialogs\RenameRuleObjectDialog.cs (2)
105Control someControl = sender as Control;
System.Workflow.ComponentModel (31)
AuthoringOM\Design\DesignerHelpers.cs (2)
1395Control control = owner as Control;
AuthoringOM\Design\DesignerWidgets.cs (5)
234graphics.DrawString(index.ToString(CultureInfo.CurrentCulture), Control.DefaultFont, SystemBrushes.ControlText, (RectangleF)itemRectangle, format); 1504Controls.AddRange(new Control[] { this.scrollBar, this.splitter, this.tabStrip }); 1904Point mousePosition = PointToClient(Control.MousePosition); 2145private Control parentControl; 2155internal WorkflowToolTip(Control parentControl)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (3)
390this.themeConfigPanel.Controls.AddRange(new Control[] { this.propertiesGrid, this.splitter, this.designerTreeView }); 417private bool ValidateControls(out string error, out Control control) 469Control control = null;
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (4)
187if ((Control.ModifierKeys & Keys.Shift) > 0) 197if ((Control.ModifierKeys & Keys.Shift) > 0) 207if ((Control.ModifierKeys & Keys.Shift) > 0) 233if ((Control.ModifierKeys & Keys.Shift) == 0)
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
391UpdateTransparency(parentView.PointToClient(Control.MousePosition));
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (2)
129Point clientPoint = parentView.PointToClient(Control.MousePosition); 130Point logicalPoint = parentView.ScreenPointToLogical(Control.MousePosition);
AuthoringOM\Design\MessageFilters\WindowManager.cs (3)
66if (this.currentActiveDesigner != null && ((Control.ModifierKeys & (Keys.Control | Keys.Shift)) == 0)) 196UpdateViewOnMouseWheel(eventArgs, Control.ModifierKeys); 422if (Control.ModifierKeys == Keys.Control)
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (2)
82this.currentState = ((Control.ModifierKeys & Keys.Shift) != 0) ? ((this.initialState == ZoomState.In) ? ZoomState.Out : ZoomState.In) : this.initialState; 190this.currentState = ((Control.ModifierKeys & Keys.Shift) != 0) ? ((this.initialState == ZoomState.In) ? ZoomState.Out : ZoomState.In) : this.initialState;
AuthoringOM\Design\Themes.cs (1)
230WorkflowTheme.defaultFont = Control.DefaultFont;
AuthoringOM\Design\WorkflowView.cs (8)
1159Point clientPoint = PointToClient(Control.MousePosition); 1160MouseEventArgs eventArgs = new MouseEventArgs(Control.MouseButtons, 1, clientPoint.X, clientPoint.Y, 0); 1176Point clientPoint = PointToClient(Control.MousePosition); 1177MouseEventArgs eventArgs = new MouseEventArgs(Control.MouseButtons, 1, clientPoint.X, clientPoint.Y, 0); 1419Point location = (LParam != -1) ? new Point(LParam) : Control.MousePosition; 2227Control control = Control.FromHandle(m.HWnd); 2247public class WorkflowViewAccessibleObject : Control.ControlAccessibleObject
System.WorkflowServices (1)
System\Workflow\Activities\Design\OperationPickerDialog.cs (1)
333foreach (Control control in detailsViewPanel.Controls)