Click or drag to resize

Control Methods (Typed)

X#

The Control type exposes the following members.

Functions
  NameDescription
Public methodActivate
Provide a method that is invoked when the control has focus and a window is activated.

Public methodAddChild
Public methodAsString
Public methodBringToFront
Public methodCreate
Creates the underlying Win32 control
Public methodCreateWindowEx
Public methodDeactivate
Provide a method that is invoked when the control has focus and a window is deactivated.

Public methodDefault
Call the default windows procedure for a control and set the EventReturnValue.
Public methodDestroy
Provide a method to de-instantiate any Control object.
(Overrides Destroy.)
Public methodDisable
Disable a control (until a subsequent call to Control:Enable()).
Public methodDisableTheme
Disable the WinXP theme for a control.
Public methodDispatch
Provide the prototype dispatcher for events within the system when the control has focus; routing various events to their appropriate event handlers.

Public methodDrop
Public methodEnable
Enable a control that was previously disabled.
Public methodExpose
Provide a method that is invoked when the control has focus and whenever part of the window needs repainting.

Public methodFocusChange
Provide a method that is invoked when the control has focus and the input focus changes from the current control to another (or vice versa).

Public methodHandle
Return the handle for a control.
Public methodHasBorder
Check if a border has been set for the control
Public methodHasStyle
Check if a style value has been set for the control
Public methodHide
Hide a control so it is not visible (until a subsequent call to Control:Show()).
Public methodHorizontalScroll
Provide a method that is invoked when the control has focus and a horizontal scroll bar is scrolled.

Public methodIsEnabled
Report if this control is currently enabled.
Public methodIsReadOnly
Report if this control is currently readonly.
Public methodIsVisible
Report if this control is visible (completely or partially) or hidden.
Public methodKeyDown
Provide a method that is invoked when the control has focus and a key on the keyboard is pressed.

Public methodKeyUp
Provide a method that is invoked when the control has focus and a key on the keyboard is released.

Public methodLinkDF
Connect a control to a data field in a data server.
Public methodMenuInit
Provide a method that is invoked when a pop-up menu owned by the control is about to pop up.
Public methodMenuSelect
Provide a method that is invoked when an item on a menu owned by the control is highlighted.
Public methodMouseButtonDoubleClick
Provide a method that is invoked when the control has focus, the mouse pointer is positioned over the window, and a mouse button is double-clicked.

Public methodMouseButtonDown
Provide a method that is invoked when the control has focus, the mouse pointer is positioned over the window, and a mouse button is clicked.

Public methodMouseButtonUp
Provide a method that is invoked when the control has focus, the mouse pointer is positioned over the window, and a mouse button is released.
Public methodMouseDrag
Provide a method that is invoked when the control has focus and a mouse with one or more buttons clicked is moved in the window.
Public methodMouseMove
Provide a method that is invoked when the control has focus and the mouse is moved in the control.
Public methodMove
Provide a method that is invoked when the control has focus and the control is moved (either by the user or by the application).
Public methodOnControlCreated
Public methodOnHandleCreated
Public methodOnHandleDestroyed
Public methodOverRide
This is a compatibility method that is no longer used or needed.
Public methodStatic memberOwnerAlignmentHandledByWinForms
Public methodPaintBackGround
Public methodPerformValidations
Perform all the validations defined to this control's field specification (for example, required, maximum and minimum digits, maximum and minimum value, validation rule) and return the result of the test.
Public methodRegisterTimer
Register a timer method to be invoked for the control.
Public methodRePaint
Send an ExposeEvent to repaint the control
Public methodResize
Provide a method that is invoked when the control has focus and the control changes size.
Public methodRestoreUpdate
Resume all drawing updates for a control (after Control:SuspendUpdate() is called).
Public methodSendToBack
Public methodSetExStyle
Set the exstyle for the control.
Public methodSetFocus
Pass input focus to a control, thereby directing all mouse and keyboard input to the control.
Public methodSetStyle
Set the style for the control.
Public methodShow
Display a control so it is visible.
Public methodShowToolTip
Public methodSuspendUpdate
Temporarily suspend all drawing updates for a control; drawing resumes with a call to Control:RestoreUpdate().
Public methodTimer
Provide a method to be invoked at specific intervals defined when the timer is registered though the RegisterTimer() method.
Public methodValidateControl
This method validates if the control has been created and when not then it triggers the control creation
Public methodVerticalScroll
Provide a method that is invoked when the control has focus and a vertical scroll bar is scrolled.
Top
See Also