Defines the base class for controls, which are components with visual representation.
public class Control: Component
The following table lists the members exposed by the Control object. Click a tab on the left to choose the type of member you want to view.
Methods
Method Description BringToFront Brings the control to the front of the z-order. Contains Returns a value indicating whether the specified control is a child of the control. Control Initializes a new instance of Control. CreateControl Forces the creation of the control, including the creation of the handle and any child controls. CreateControlSkin Creates the skin for the Control. CreateControlSkinInstance Creates a ControlSkin instance for the Control. CreateControlsInstance Creates a new instance of the control collection for the control. CreateHandle Creates a handle for the control. DestroyHandle Destroys the handle associated with the control. Dispose Overloaded. (Inherited from Component) Equals Overloaded. Compares two objects to determine if they are equal. (Inherited from Object) FindForm Returns the form that the control is on. Focus Sets input focus to the control. GetChildAtPoint Returns the child control that is located at the specified coordinates. GetContainerControl Returns the next ContainerControl up the control's chain of parent controls. GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object) GetNextControl Returns the next control forward or back in the tab order of child controls. GetStyle Returns the value of the specified control style bit for the control. GetTopLevel Determines if the control is a top-level control. GetType Gets the Type of the current instance. (Inherited from Object) Hide Hides the control from the user. InitLayout Initializes the layout state of the control after it has been added to another container. InternalMethod Invalidate Overloaded. Invalidates the control. This will cause a paint event to be sent later to the control. InvokeGotFocus Raises the GotFocus event for the specified control. InvokeLostFocus Raises the LostFocus event for the specified control. InvokeOnClick Raises the Click event for the specified control. InvokePaint Raises the Paint event for the specified control. InvokePaintBackground Invoke the Control.OnPaintBackground method for the specified control. IsInputChar Determines if a character is an input character that the control recognizes. IsInputKey Determines whether the specified key is a regular input key or a special key that requires preprocessing. IsMnemonic Determines if the specified character is the mnemonic character assigned to the control in the specified string. OnBackColorChanged Raises the BackColorChanged event. OnCausesValidationChanged Raises the CausesValidationChanged event. OnClick Raises the Click event. OnClientSizeChanged OnControlAdded Raises the ControlAdded event. OnControlRemoved Raises the ControlRemoved event. OnCreateControl Raises the CreateControl event. OnCursorChanged Raises the CursorChanged event. OnDockChanged Raises the DockChanged event. OnDoubleClick Raises the DoubleClick event. OnEnabledChanged Raises the EnabledChanged event. OnEnter Raises the Enter event. OnFontChanged Raises the FontChanged event. OnForeColorChanged Raises the ForeColorChanged event. OnGotFocus Raises the GotFocus event. OnHandleCreated Raises the HandleCreated event. OnHandleDestroyed Raises the HandleDestroyed event. OnKeyDown Raises the KeyDown event. OnKeyPress Raises the KeyPress event. OnKeyUp Raises the KeyUp event. OnLayout Raises the Layout event. OnLeave Raises the Leave event. OnLocationChanged Raises the LocationChanged event. OnLostFocus Raises the LostFocus event. OnMouseDown Raises the MouseDown event. OnMouseEnter Raises the MouseEnter event. OnMouseLeave Raises the MouseLeave event. OnMouseMove Raises the MouseMove event. OnMouseUp Raises the MouseUp event. OnMouseWheel Raises the MouseWheel event. OnMove Raises the Move event. OnNCPaint Occurs when the non-client area of the control needs to be redrawn. OnPaint Raises the Paint event. OnPaintBackground Paints the background of the control. OnParentChanged Raises the ParentChanged event. OnParentEnabledChanged Raises the EnabledChanged event when the Enabled property value of the control's container changes. OnParentVisibleChanged Raises the VisibleChanged event when the Visible property value of the control's container changes. OnResize Raises the Resize event. OnSizeChanged Raises the SizeChanged event. OnSkinChanged Raises the SkinChanged event. OnStyleChanged Raises the StyleChanged event. OnTabIndexChanged Raises the TabIndexChanged event. OnTabStopChanged Raises the TabStopChanged event. OnTextChanged Raises the TextChanged event. OnValidated Raises the Validated event. OnValidating Raises the Validating event. OnVisibleChanged Raises the VisibleChanged event. PerformLayout Overloaded. Forces the control to apply layout logic to all its child controls. PointToClient Computes the location of the specified screen point into client coordinates. PointToScreen Computes the location of the specified client point into screen coordinates. ProcessDialogChar Processes a dialog character. ProcessDialogKey Processes a dialog key. ProcessMnemonic Processes a mnemonic character. RecreateHandle Forces the re-creation of the handle for the control. RectangleToClient Computes the size and location of the specified screen rectangle in client coordinates. RectangleToScreen Computes the size and location of the specified client rectangle in screen coordinates. ReferenceEquals Determines whether the specified Object instances are the same instance. (Inherited from Object) Refresh Forces the control to invalidate its client area and immediately redraw itself and any child controls. ResetBackColor Resets the BackColor property to its default value. ResetCursor Resets the Cursor property to its default value. ResetFont Resets the Font property to its default value. ResetForeColor Resets the ForeColor property to its default value. ResetSkin Resets the Skin property to its default value. ResetText Resets the Text property to its default value. ResumeLayout Overloaded. Resumes normal layout logic. Select Overloaded. Activates the control. SelectNextControl Activates the next control. SendToBack Sends the control to the back of the z-order. SetBounds Overloaded. Sets the bounds of the control to the specified location and size. SetBoundsCore Performs the work of setting the specified bounds of this control. SetClientSizeCore Sets the size of the client area of the control. SetNCSizeCore Sets the non-client area of the control. SetStyle Sets the specified style bit to the specified value. SetTopLevel Sets the control as the top-level control. SetVisibleCore Sets the control to the specified visible state. Show Displays the control to the user. SuspendLayout Temporarily suspends the layout logic for the control. ToString Returns a String that represents the current Object. (Inherited from Object) Update Causes the control to redraw its client area if it was invalidated. UpdateBounds Overloaded. Updates the bounds of the control with the current size and location. UpdateZOrder Updates the control in its parent's z-order. Properties
Property Description Anchor Gets or sets which edges of the control are anchored to the edges of its container. BackColor Gets or sets the background color for the control. BackVisual Gets the visual of the control. Bottom Gets the distance between the bottom edge of the control and the top edge of its container's client area. Bounds Gets or sets the size and location of the control including its nonclient elements. CanFocus Gets a value indicating whether the control can receive focus. CanSelect Gets a value indicating whether the control can be selected. Capture Gets or sets a value indicating whether the control has captured the mouse. CausesValidation Gets or sets a value indicating whether the control causes validation for any controls that require validation when it receives focus. ClientRectangle Gets the rectangle that represents the client area of the control. ClientSize Gets or sets the height and width of the client area of the control. Container Gets the IContainer that contains the Component. (Inherited from Component) ContainsFocus Gets a value indicating whether the control or one of its child controls currently has the input focus. ControlSkin Gets the ControlSkin of the control. Controls Gets the collection of controls contained within the control. Created Gets a value indicating whether the control has been created. Cursor Gets or sets the cursor which is displayed when the mouse pointer is over the control. DefaultBackColor Gets the default background color of the control. DefaultFont Gets the default font of the control. DefaultForeColor Gets the default foreground color of the control. DefaultSize Gets the default size of the control. DefaultSkin Gets or sets the default skin of the control. DisplayRectangle Gets the rectangle which represents the display area of the control. Disposing Gets a value indicating whether the control is in the process of being disposed of. Dock Gets or sets which edge of the parent container a control is docked to. Enabled Gets or sets a value indicating whether the control can react to user interaction. Focused Gets a value indicating whether the control has input focus. Font Gets or sets the font of the text which is displayed by the control. ForeColor Gets or sets the foreground color of the control. Handle Gets the native handle that the control is bound to. HasChildren Gets a value indicating whether the control has one or more child controls. Height Gets or sets the height of the control. IsDisposed Gets a value indicating whether the control has been disposed of. IsHandleCreated Gets a value indicating whether the control has a handle associated with it. Left Gets or sets the horizontal coordinate of a control's left edge. Location Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container. MaskVisual Gets the Visual which is the mask of the control. ModifierKeys Gets a value indicating when one of the modifier keys (SHIFT, CTRL, and ALT) is pressed. MouseButtons Gets a value indicating when one of the mouse buttons is clicked. MousePosition Gets the position of the mouse cursor in global coordinates. NCVisual Gets the non-client visual element of the control. Name Gets or sets the name of the control. OverlayVisual Gets a visual placed over everything. Parent Gets or sets the parent container of the control. Parked Gets a value indicating whether the control is parked. RecreatingHandle Gets a value indicating whether the control is currently re-creating its handle. Right Gets the distance between the right edge of the control and the left edge of its container. Site Gets or sets the ISite of the Component. (Inherited from Component) Size Gets or sets the height and width of the control. Skin Gets or sets the skin of the control. SystemMenu Gets or sets the SystemMenu of the control. TabIndex Gets or sets the tab order of the control within its container. TabStop Gets or sets a value indicating whether the user can use the TAB key to focus to the control. Tag Gets or sets the object that contains data about the control. Text Gets or sets the text which is associated with the control. Top Gets or sets the vertical coordinate of the control's top edge. TopLevelControl Gets the parent control that is not parented by another Windows Forms control. Visible Gets or sets a value indicating whether the control is visible. Visual Gets the visual element of the control. Width Gets or sets the width of the control. Events
Event Description BackColorChanged Handles the changes of the BackColor property. CausesValidationChanged Handles the changes of the CausesValidation property. Click Handles the click event when the control is clicked. ClientSizeChanged ControlAdded Handles the addition of a new control when it is added to the Control.ControlCollection. ControlRemoved Handles the remove of a control from the Control.ControlCollection. CursorChanged Handles the changes of the Cursor property. Disposed Adds an event handler to listen to the Disposed event on the component. (Inherited from Component) DockChanged Handles the changes of the Dock property. DoubleClick Handles the double-clicked event of the control. EnabledChanged Handles the changes of the Enabled property. Enter Handles the entered event of the control. FontChanged Handles the changes of the Font property. ForeColorChanged Handles the changes of the ForeColor property. GotFocus Handles the focus reception of the control. HandleCreated Handles the creation of a handle for the control. HandleDestroyed Handles the control's handle which is in the process of being destroyed. KeyDown Handles the pressed key event when a key is pressed and the control has focus. KeyPress Handles the pressed key event when a key is pressed and the control has focus. KeyUp Handles the release key event when a key is released and the control has focus. Layout Handles the changes of control when it should reposition its child controls. Leave Handles the input focus when it leaves the control. LocationChanged Handles the changes of the Location property. LostFocus Handles the focus on the control when it loses focus. MouseDown Handles the mouse event when the mouse pointer is over the control and a mouse button is pressed. MouseEnter Handles the mouse event when the mouse pointer enters the control. MouseLeave Handles the mouse event when the mouse pointer leaves the control. MouseMove Handles the mouse event when the mouse pointer is moved over the control. MouseUp Handles the mouse event when the mouse pointer is over the control and a mouse button is released. MouseWheel Handles the mouse event when the mouse wheel moves while the control has focus. Move Handles the motion of the control when it is moved. Paint Handles the paint event of the control when it is redrawn. ParentChanged Handles the changes of the Parent property. Resize Handles the size changes of the control when it is resized. SizeChanged Handles the changes of the Size property. SkinChanged Handles the changes of the Skin property. StyleChanged Handles the changes of the control style. TabIndexChanged Handles the changes of the TabIndex property. TabStopChanged Handles the changes of the TabStop property. TextChanged Handles the changes of the Text property. Validated Handles the validation of the control when it is finished validating. Validating Handles the validation of the control when it is validating. VisibleChanged Determines the value of the VScroll property.
Object
Namespace System.Windows.Forms Flash Library System.Windows.Forms.scl Flash Library Version 2.0.0.2118 Silverlight Library System.Windows.Forms.dll
| © 2003-2007 NETiKA Technologies. All rights reserved. |