This documentation is archived and is not being maintained.
UserControl Methods
Visual Studio 2008
The UserControl type exposes the following members.
| Name | Description | |
|---|---|---|
|
AccessibilityNotifyClients | Overloaded. Notifies the accessibility client applications of AccessibleEvents. |
|
AdjustFormScrollbars | Infrastructure. Adjusts the scroll bars on the container based on the current control positions and the control currently selected. (Inherited from ContainerControl.) |
|
BeginInvoke | Overloaded. Executes a delegate asynchronously on the thread that the control's underlying handle was created on. |
|
BringToFront | Brings the control to the front of the z-order. (Inherited from Control.) |
|
Contains | Retrieves a value indicating whether the specified control is a child of the control. (Inherited from Control.) |
|
CreateAccessibilityInstance | Creates a new accessibility object for the control. (Inherited from Control.) |
|
CreateControl | Forces the creation of the visible control, including the creation of the handle and any visible child controls. (Inherited from Control.) |
|
CreateControlsInstance | Creates a new instance of the control collection for the control. (Inherited from Control.) |
|
CreateGraphics | Creates the Graphics for the control. (Inherited from Control.) |
|
CreateHandle | Creates a handle for the control. (Inherited from Control.) |
|
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
|
DefWndProc | Sends the specified message to the default window procedure. (Inherited from Control.) |
|
DestroyHandle | Destroys the handle associated with the control. (Inherited from Control.) |
|
Dispose | Overloaded. Releases the resources used by the Component. |
|
DoDragDrop | Begins a drag-and-drop operation. (Inherited from Control.) |
|
DrawToBitmap | Supports rendering to the specified bitmap. (Inherited from Control.) |
|
EndInvoke | Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed. (Inherited from Control.) |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.) |
|
FindForm | Retrieves the form that the control is on. (Inherited from Control.) |
|
Focus | Sets input focus to the control. (Inherited from Control.) |
|
GetAccessibilityObjectById | Retrieves the specified AccessibleObject. (Inherited from Control.) |
|
GetAutoSizeMode | Retrieves a value indicating how a control will behave when its AutoSize property is enabled. (Inherited from Control.) |
|
GetChildAtPoint | Overloaded. Retrieves the child control at a specified location. |
|
GetContainerControl | Returns the next ContainerControl up the control's chain of parent controls. (Inherited from Control.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
GetNextControl | Retrieves the next control forward or back in the tab order of child controls. (Inherited from Control.) |
|
GetPreferredSize | Retrieves the size of a rectangular area into which a control can be fitted. (Inherited from Control.) |
|
GetScaledBounds | Retrieves the bounds within which the control is scaled. (Inherited from Control.) |
|
GetScrollState | Determines whether the specified flag has been set. (Inherited from ScrollableControl.) |
|
GetService | Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.) |
|
GetStyle | Retrieves the value of the specified control style bit for the control. (Inherited from Control.) |
|
GetTopLevel | Determines if the control is a top-level control. (Inherited from Control.) |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
Hide | Conceals the control from the user. (Inherited from Control.) |
|
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
InitLayout | Called after the control has been added to another container. (Inherited from Control.) |
|
Invalidate | Overloaded. Invalidates a specific region of the control and causes a paint message to be sent to the control. |
|
Invoke | Overloaded. Executes a delegate on the thread that owns the control's underlying window handle. |
|
InvokeGotFocus | Raises the GotFocus event for the specified control. (Inherited from Control.) |
|
InvokeLostFocus | Raises the LostFocus event for the specified control. (Inherited from Control.) |
|
InvokeOnClick | Raises the Click event for the specified control. (Inherited from Control.) |
|
InvokePaint | Raises the Paint event for the specified control. (Inherited from Control.) |
|
InvokePaintBackground | Raises the PaintBackground event for the specified control. (Inherited from Control.) |
|
IsInputChar | Determines if a character is an input character that the control recognizes. (Inherited from Control.) |
|
IsInputKey | Determines whether the specified key is a regular input key or a special key that requires preprocessing. (Inherited from Control.) |
|
MemberwiseClone | Overloaded. |
|
NotifyInvalidate | Infrastructure. Raises the Invalidated event with a specified region of the control to invalidate. (Inherited from Control.) |
|
OnAutoSizeChanged | Raises the AutoSizeChanged event. (Inherited from Control.) |
|
OnAutoValidateChanged | Raises the AutoValidateChanged event. (Inherited from ContainerControl.) |
|
OnBackColorChanged | Raises the BackColorChanged event. (Inherited from Control.) |
|
OnBackgroundImageChanged | Raises the BackgroundImageChanged event. (Inherited from Control.) |
|
OnBackgroundImageLayoutChanged | Raises the BackgroundImageLayoutChanged event. (Inherited from Control.) |
|
OnBindingContextChanged | Raises the BindingContextChanged event. (Inherited from Control.) |
|
OnCausesValidationChanged | Raises the CausesValidationChanged event. (Inherited from Control.) |
|
OnChangeUICues | Raises the ChangeUICues event. (Inherited from Control.) |
|
OnClick | Raises the Click event. (Inherited from Control.) |
|
OnClientSizeChanged | Raises the ClientSizeChanged event. (Inherited from Control.) |
|
OnContextMenuChanged | Raises the ContextMenuChanged event. (Inherited from Control.) |
|
OnContextMenuStripChanged | Raises the ContextMenuStripChanged event. (Inherited from Control.) |
|
OnControlAdded | Raises the ControlAdded event. (Inherited from Control.) |
|
OnControlRemoved | Raises the ControlRemoved event. (Inherited from Control.) |
|
OnCreateControl | Raises the CreateControl event. (Overrides ContainerControl::OnCreateControl().) |
|
OnCursorChanged | Raises the CursorChanged event. (Inherited from Control.) |
|
OnDockChanged | Raises the DockChanged event. (Inherited from Control.) |
|
OnDoubleClick | Raises the DoubleClick event. (Inherited from Control.) |
|
OnDragDrop | Raises the DragDrop event. (Inherited from Control.) |
|
OnDragEnter | Raises the DragEnter event. (Inherited from Control.) |
|
OnDragLeave | Raises the DragLeave event. (Inherited from Control.) |
|
OnDragOver | Raises the DragOver event. (Inherited from Control.) |
|
OnEnabledChanged | Raises the EnabledChanged event. (Inherited from Control.) |
|
OnEnter | Raises the Enter event. (Inherited from Control.) |
|
OnFontChanged | Raises the FontChanged event. (Inherited from ContainerControl.) |
|
OnForeColorChanged | Raises the ForeColorChanged event. (Inherited from Control.) |
|
OnGiveFeedback | Raises the GiveFeedback event. (Inherited from Control.) |
|
OnGotFocus | Raises the GotFocus event. (Inherited from Control.) |
|
OnHandleCreated | Raises the HandleCreated event. (Inherited from Control.) |
|
OnHandleDestroyed | Raises the HandleDestroyed event. (Inherited from Control.) |
|
OnHelpRequested | Raises the HelpRequested event. (Inherited from Control.) |
|
OnImeModeChanged | Raises the ImeModeChanged event. (Inherited from Control.) |
|
OnInvalidated | Raises the Invalidated event. (Inherited from Control.) |
|
OnKeyDown | Raises the KeyDown event. (Inherited from Control.) |
|
OnKeyPress | Raises the KeyPress event. (Inherited from Control.) |
|
OnKeyUp | Raises the KeyUp event. (Inherited from Control.) |
|
OnLayout | (Inherited from ContainerControl.) |
|
OnLeave | Raises the Leave event. (Inherited from Control.) |
|
OnLoad | Raises the Load event. |
|
OnLocationChanged | Raises the LocationChanged event. (Inherited from Control.) |
|
OnLostFocus | Raises the LostFocus event. (Inherited from Control.) |
|
OnMarginChanged | Raises the MarginChanged event. (Inherited from Control.) |
|
OnMouseCaptureChanged | Raises the MouseCaptureChanged event. (Inherited from Control.) |
|
OnMouseClick | Raises the MouseClick event. (Inherited from Control.) |
|
OnMouseDoubleClick | Raises the MouseDoubleClick event. (Inherited from Control.) |
|
OnMouseDown | Raises the MouseDown event. (Overrides Control::OnMouseDown(MouseEventArgs).) In .NET Compact Framework 3.5, this member is inherited from Control::OnMouseDown(MouseEventArgs). |
|
OnMouseEnter | Raises the MouseEnter event. (Inherited from Control.) |
|
OnMouseHover | Raises the MouseHover event. (Inherited from Control.) |
|
OnMouseLeave | Raises the MouseLeave event. (Inherited from Control.) |
|
OnMouseMove | Raises the MouseMove event. (Inherited from Control.) |
|
OnMouseUp | Raises the MouseUp event. (Inherited from Control.) |
|
OnMouseWheel | Raises the MouseWheel event. (Inherited from ScrollableControl.) |
|
OnMove | Raises the Move event. (Inherited from Control.) |
|
OnNotifyMessage | Notifies the control of Windows messages. (Inherited from Control.) |
|
OnPaddingChanged | Raises the PaddingChanged event. (Inherited from ScrollableControl.) |
|
OnPaint | Raises the Paint event. (Inherited from Control.) |
|
OnPaintBackground |
Paints the background of the control. (Inherited from ScrollableControl.) In .NET Compact Framework 3.5, this member is inherited from Control::OnPaintBackground(PaintEventArgs). |
|
OnParentBackColorChanged | Raises the BackColorChanged event when the BackColor property value of the control's container changes. (Inherited from Control.) |
|
OnParentBackgroundImageChanged | Raises the BackgroundImageChanged event when the BackgroundImage property value of the control's container changes. (Inherited from Control.) |
|
OnParentBindingContextChanged | Raises the BindingContextChanged event when the BindingContext property value of the control's container changes. (Inherited from Control.) |
|
OnParentChanged | Raises the ParentChanged event. (Inherited from ContainerControl.) In .NET Compact Framework 3.5, this member is inherited from Control::OnParentChanged(EventArgs). |
|
OnParentCursorChanged | Raises the CursorChanged event. (Inherited from Control.) |
|
OnParentEnabledChanged | Raises the EnabledChanged event when the Enabled property value of the control's container changes. (Inherited from Control.) |
|
OnParentFontChanged | Raises the FontChanged event when the Font property value of the control's container changes. (Inherited from Control.) |
|
OnParentForeColorChanged | Raises the ForeColorChanged event when the ForeColor property value of the control's container changes. (Inherited from Control.) |
|
OnParentRightToLeftChanged | Raises the RightToLeftChanged event when the RightToLeft property value of the control's container changes. (Inherited from Control.) |
|
OnParentVisibleChanged | Raises the VisibleChanged event when the Visible property value of the control's container changes. (Inherited from Control.) |
|
OnPreviewKeyDown | Raises the PreviewKeyDown event. (Inherited from Control.) |
|
OnPrint | Raises the Paint event. (Inherited from Control.) |
|
OnQueryContinueDrag | Raises the QueryContinueDrag event. (Inherited from Control.) |
|
OnRegionChanged | Raises the RegionChanged event. (Inherited from Control.) |
|
OnResize | Infrastructure. Raises the Resize event. (Overrides Control::OnResize(EventArgs).) In .NET Compact Framework 3.5, this member is inherited from Control::OnResize(EventArgs). |
|
OnRightToLeftChanged | Raises the RightToLeftChanged event. (Inherited from ScrollableControl.) |
|
OnScroll | Raises the Scroll event. (Inherited from ScrollableControl.) |
|
OnSizeChanged | Raises the SizeChanged event. (Inherited from Control.) |
|
OnStyleChanged | Raises the StyleChanged event. (Inherited from Control.) |
|
OnSystemColorsChanged | Raises the SystemColorsChanged event. (Inherited from Control.) |
|
OnTabIndexChanged | Raises the TabIndexChanged event. (Inherited from Control.) |
|
OnTabStopChanged | Raises the TabStopChanged event. (Inherited from Control.) |
|
OnTextChanged | Raises the TextChanged event. (Inherited from Control.) |
|
OnValidated | Raises the Validated event. (Inherited from Control.) |
|
OnValidating | Raises the Validating event. (Inherited from Control.) |
|
OnVisibleChanged | Raises the VisibleChanged event. (Inherited from ScrollableControl.) |
|
PerformAutoScale | Performs scaling of the container control and its children. (Inherited from ContainerControl.) |
|
PerformLayout | Overloaded. Forces the control to apply layout logic to child controls. |
|
PointToClient | Computes the location of the specified screen point into client coordinates. (Inherited from Control.) |
|
PointToScreen | Computes the location of the specified client point into screen coordinates. (Inherited from Control.) |
|
PreProcessControlMessage | Preprocesses keyboard or input messages within the message loop before they are dispatched. (Inherited from Control.) |
|
PreProcessMessage | Preprocesses keyboard or input messages within the message loop before they are dispatched. (Inherited from Control.) |
|
ProcessCmdKey | Processes a command key. (Inherited from ContainerControl.) |
|
ProcessDialogChar | Infrastructure. Processes a dialog character. (Inherited from ContainerControl.) |
|
ProcessDialogKey | Infrastructure. Processes a dialog key. (Inherited from ContainerControl.) |
|
ProcessKeyEventArgs | Processes a key message and generates the appropriate control events. (Inherited from Control.) |
|
ProcessKeyMessage | Processes a keyboard message. (Inherited from Control.) |
|
ProcessKeyPreview | Previews a keyboard message. (Inherited from Control.) |
|
ProcessMnemonic | Infrastructure. Processes a mnemonic character. (Inherited from ContainerControl.) |
|
ProcessTabKey | Selects the next available control and makes it the active control. (Inherited from ContainerControl.) |
|
RaiseDragEvent | Infrastructure. Raises the appropriate drag event. (Inherited from Control.) |
|
RaiseKeyEvent | Infrastructure. Raises the appropriate key event. (Inherited from Control.) |
|
RaiseMouseEvent | Infrastructure. Raises the appropriate mouse event. (Inherited from Control.) |
|
RaisePaintEvent | Infrastructure. Raises the appropriate paint event. (Inherited from Control.) |
|
RecreateHandle | Forces the re-creation of the handle for the control. (Inherited from Control.) |
|
RectangleToClient | Computes the size and location of the specified screen rectangle in client coordinates. (Inherited from Control.) |
|
RectangleToScreen | Computes the size and location of the specified client rectangle in screen coordinates. (Inherited from Control.) |
|
Refresh | Forces the control to invalidate its client area and immediately redraw itself and any child controls. (Inherited from Control.) |
|
ResetBackColor | Resets the BackColor property to its default value. (Inherited from Control.) |
|
ResetBindings | Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values. (Inherited from Control.) |
|
ResetCursor | Resets the Cursor property to its default value. (Inherited from Control.) |
|
ResetFont | Resets the Font property to its default value. (Inherited from Control.) |
|
ResetForeColor | Resets the ForeColor property to its default value. (Inherited from Control.) |
|
ResetImeMode | Resets the ImeMode property to its default value. (Inherited from Control.) |
|
ResetMouseEventArgs | Infrastructure. Resets the control to handle the MouseLeave event. (Inherited from Control.) |
|
ResetRightToLeft | Resets the RightToLeft property to its default value. (Inherited from Control.) |
|
ResetText | Resets the Text property to its default value. (Inherited from Control.) |
|
ResumeLayout | Overloaded. Resumes the usual layout logic. |
|
RtlTranslateAlignment | Overloaded. Converts the current alignment to the appropriate alignment to support right-to-left text. |
|
RtlTranslateContent | Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text. (Inherited from Control.) |
|
RtlTranslateHorizontal | Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text. (Inherited from Control.) |
|
RtlTranslateLeftRight | Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text. (Inherited from Control.) |
|
Scale | Overloaded. Scales the control and any child controls. |
|
ScaleControl | Scales a control's location, size, padding and margin. (Inherited from ScrollableControl.) |
|
ScaleCore | This method is not relevant for this class. (Inherited from ScrollableControl.) |
|
ScrollControlIntoView | Scrolls the specified child control into view on an auto-scroll enabled control. (Inherited from ScrollableControl.) |
|
ScrollToControl | Calculates the scroll offset to the specified child control. (Inherited from ScrollableControl.) |
|
Select | Overloaded. Activates the control. |
|
SelectNextControl | Activates the next control. (Inherited from Control.) |
|
SendToBack | Sends the control to the back of the z-order. (Inherited from Control.) |
|
SetAutoScrollMargin | Sets the size of the auto-scroll margins. (Inherited from ScrollableControl.) |
|
SetAutoSizeMode | Sets a value indicating how a control will behave when its AutoSize property is enabled. (Inherited from Control.) |
|
SetBounds | Overloaded. Sets the bounds of the control. |
|
SetBoundsCore | Performs the work of setting the specified bounds of this control. (Inherited from Control.) |
|
SetClientSizeCore | Sets the size of the client area of the control. (Inherited from Control.) |
|
SetDisplayRectLocation | Positions the display window to the specified value. (Inherited from ScrollableControl.) |
|
SetScrollState | Sets the specified scroll state flag. (Inherited from ScrollableControl.) |
|
SetStyle | Sets a specified ControlStyles flag to either true or false. (Inherited from Control.) |
|
SetTopLevel | Sets the control as the top-level control. (Inherited from Control.) |
|
SetVisibleCore | Sets the control to the specified visible state. (Inherited from Control.) |
|
Show | Displays the control to the user. (Inherited from Control.) |
|
SizeFromClientSize | Determines the size of the entire control from the height and width of its client area. (Inherited from Control.) |
|
SuspendLayout | Temporarily suspends the layout logic for the control. (Inherited from Control.) |
|
ToString |
Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) In .NET Compact Framework 3.5, this member is inherited from Object::ToString(). |
|
Update | Causes the control to redraw the invalidated regions within its client area. (Inherited from Control.) |
|
UpdateBounds | Overloaded. Updates the bounds of the control. |
|
UpdateDefaultButton | When overridden by a derived class, updates which button is the default button. (Inherited from ContainerControl.) |
|
UpdateStyles | Forces the assigned styles to be reapplied to the control. (Inherited from Control.) |
|
UpdateZOrder | Updates the control in its parent's z-order. (Inherited from Control.) |
|
Validate | Overloaded. Verifies the value of the control losing focus by causing the Validating and Validated events to occur, in that order. |
|
ValidateChildren | Overloaded. |
|
WndProc | (Overrides ContainerControl::WndProc(Message%).) |
| Name | Description | |
|---|---|---|
|
IContainerControl::ActivateControl | Activates the specified control. (Inherited from ContainerControl.) |
|
IDropTarget::OnDragDrop | Infrastructure. Raises the DragDrop event. (Inherited from Control.) |
|
IDropTarget::OnDragEnter | Infrastructure. Raises the DragEnter event. (Inherited from Control.) |
|
IDropTarget::OnDragLeave | Infrastructure. Raises the DragLeave event. (Inherited from Control.) |
|
IDropTarget::OnDragOver | Infrastructure. Raises the DragOver event. (Inherited from Control.) |
Show: