dbicButton Send comments on this topic.
dbiButton Class Members
See Also  Properties  Methods  Events
dbicButton Assembly > Dbi.WinControl.Button Namespace : dbiButton Class


"

The following tables list the members exposed by dbiButton.

"

Public Constructors

 NameDescription
public ConstructordbiButton ConstructorThe constructor for the control.  
Top

Public Properties

 NameDescription
public PropertyAccessibleDescriptionGets or sets the description of the control used by accessibility client applications. (Inherited from System.Windows.Forms.Control)
public PropertyAccessibleNameGets or sets the name of the control used by accessibility client applications. (Inherited from System.Windows.Forms.Control)
public PropertyAccessibleRoleGets or sets the accessible role of the control (Inherited from System.Windows.Forms.Control)
public PropertyActiveOnMaskDetermines if a mouse click will be accepted by the control when the mouse is over a portion of the button that is "masked". This is to allow the use of transparency to allow skinnable buttons. This property will have no effect unless an image has been provided to the "Picture" property.  
public PropertyAllowDropGets or sets a value indicating whether the control can accept data that the user drags onto it. (Inherited from System.Windows.Forms.Control)
public PropertyAnchorGets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent. (Inherited from System.Windows.Forms.Control)
public PropertyArrowColorGets or sets the color of the arrow in the control.  
public PropertyArrowDirectionGets or sets the direction of the arrow in the control.  
public PropertyArrowOffsetGets or sets the vertical and horizontal offset values used to calculate the position of the navigation arrow in the control.  This value is applied comparative to the center of the control so to move up or to the left of center, use negative values.  
public PropertyArrowTypeGets or sets the type of arrow to be displayed in the control.  
public PropertyBackColorGets or sets the primary background color for the control.  
public PropertyBackColorDownGets or sets the backcolor of the control when it is in a down state. This property will also be the primary background color if grad fills are selected for the button when the button is clicked.  
public PropertyBackColorFrom

Gets or sets the primary background color for the control if you are using gradient fills on the button.

 
public PropertyBackColorOverGets or sets the primary background color of the control when the mouse is over the button, and it is not in a depressed state. This property will also be the primary background color if grad fills are selected for the button when the mouse moves over the button.  
public PropertyBackColorTo

Gets or sets the secondary background color of the contol for gradient fills.

 
public PropertyBackFillTypeGets or sets the pattern used to paint the background of the control.  
public PropertyBackgroundImageGets or sets the background image for the control.  
public PropertyBackgroundImageLayoutGets or sets the background image layout as defined in the System.Windows.Forms.ImageLayout enumeration. (Inherited from System.Windows.Forms.Control)
public PropertyBorderColorGets or sets the color used to paint a Regular/RoundedEdge border in the control.  
public PropertyBorderColorDownGets or sets the color used to paint a Regular/RoundedEdge border in the control when it is in a down state.  
public PropertyBorderColorOverGets or sets the color used to paint a Regular/RoundedEdge border in the control when the cursor is over it and the control is in a up state.  
public PropertyBorderDownGets or sets the type of border to be placed around the control when it in a down state.  
public PropertyBorderOverGets or sets the type of border to be placed around the control when the mouse moves over it while the control is in an up state.  
public PropertyBorderTypeGets or sets the type of border to be placed around the control.  
public PropertyCausesValidationGets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus. (Inherited from System.Windows.Forms.Control)
public PropertyContextMenuStripGets or sets the System.Windows.Forms.ContextMenuStrip associated with this control. (Inherited from System.Windows.Forms.Control)
public PropertyCursorGets or sets the cursor that is displayed when the mouse pointer is over the control. (Inherited from System.Windows.Forms.Control)
public PropertyDataBindingsGets the data bindings for the control. (Inherited from System.Windows.Forms.Control)
public PropertyDialogResultGets or sets a value that is returned to the parent form when the control is clicked.  
public PropertyDisableBackColorGets or sets the color used to paint the background of the control when it is disabled.  
public PropertyDisableBorderColorGets or sets the color used to paint the border of the control when it is disabled.  
public PropertyDisableForeColorGets or sets the color used to paint the text of the control when it is disabled.  
public PropertyDockGets or sets which control borders are docked to its parent control and determines how a control is resized with its parent. (Inherited from System.Windows.Forms.Control)
public PropertyDrawFocusDetermines if a dotted border will be drawn inside the button border when the control has focus.  
public PropertyEnabledGets or sets a value indicating whether the control can respond to user interaction. (Inherited from System.Windows.Forms.Control)
public PropertyFlatStyle

Determines how the control is drawn.

 
public PropertyFocusBackColorGets or sets the background color of the control when it has focus.  
public PropertyFocusBorderColorGets or sets the color of the border of the control when it has focus.  
public PropertyFocusColorGets or sets the color of the highlight border around the control when it has focus.  
public PropertyFocusForeColor

Gets or sets the foreground color of the control when it has focus.

 
public PropertyFontGets or sets the font of the text displayed by the control. (Inherited from System.Windows.Forms.Control)
public PropertyFontOverGets or sets the text font when the mouse moves over the control.  
public PropertyForeColorGets or sets the foreground color of the control. (Inherited from System.Windows.Forms.Control)
public PropertyForeColorOverGets or sets text color of the control when the mouse moves over it.  
public PropertyImeModeGets or sets the Input Method Editor (IME) mode of the control. (Inherited from System.Windows.Forms.Control)
public PropertyLocationGets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container. (Inherited from System.Windows.Forms.Control)
public PropertyMarginGets or sets the space between controls. (Inherited from System.Windows.Forms.Control)
public PropertyMaskColorDetermines the mask color used for masked pictures.  
public PropertyMaximumSizeGets or sets the size that is the upper limit that System.Windows.Forms.Control.GetPreferredSize(System.Drawing.Size) can specify. (Inherited from System.Windows.Forms.Control)
public PropertyMinimumSizeGets or sets the size that is the lower limit that System.Windows.Forms.Control.GetPreferredSize(System.Drawing.Size) can specify. (Inherited from System.Windows.Forms.Control)
public PropertyOverColorGets or sets the color of the highlight border when the mouse moves over the control, when the control is in an up state.  
public PropertyPaddingGets or sets padding within the control. (Inherited from System.Windows.Forms.Control)
public PropertyPicDownOffsetGets or sets the vertical and horizontal offset values used to calculate the position of the image when the control is in a down state.  
public PropertyPicOffsetGets or sets the vertical and horizontal offset values used to calculate the position of the image in the control.  
public PropertyPicOnlyDetermines if only the picture (no text) will be displayed in the control.  
public PropertyPicPositionGets or sets the position of the image in relation to the text of the control.  
public PropertyPictureGets or sets the main image to be displayed in the control.  
public PropertyPictureDisableGets or sets the unique image to be displayed when the control is disabled.  
public PropertyPictureDownGets or sets the unique image to be displayed when the control is clicked on or in a down state.  
public PropertyPictureMaskThis image determines the masking areas for the main image.  
public PropertyPictureOver

Gets or sets the image to be displayed when the mouse moves over the control.

 
public PropertyRightToLeftGets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts. (Inherited from System.Windows.Forms.Control)
public PropertySiteGets or sets the site of the control. (Inherited from System.Windows.Forms.Control)
public PropertySizeGets or sets the height and width of the control. (Inherited from System.Windows.Forms.Control)
public PropertySoundClick

Gets or sets the name of the wave (.wav) file to be played when the mouse clicks on the control.

 
public PropertySoundOver

Gets or sets the name of the wave (.wav) file to be played when the mouse moves over the control.

 
public PropertyStateDetermines if the control is in an up (true) or down (false) state.  
public PropertyTabIndexGets or sets the tab order of the control within its container. (Inherited from System.Windows.Forms.Control)
public PropertyTabStopGets or sets a value indicating whether the user can give the focus to this control using the TAB key. (Inherited from System.Windows.Forms.Control)
public PropertyTagGets or sets the object that contains data about the control. (Inherited from System.Windows.Forms.Control)
public PropertyTextOverridden. Gets or sets the text to be displayed in the control.  
public PropertyTextAlignGets or sets the vertical and horizontal alignment of the text in the control.  
public PropertyTextAntiAliasDetermines if Anti-Aliasing will be used when painting the text.  
public PropertyTextOffsetGets or sets the vertical and horizontal offset values used to calculate the position of the text in the control.  
public PropertyToggleDetermines if the control will act as a toggle button.  
public PropertyUseWaitCursorGets or sets a value indicating whether to use the wait cursor for the current control and all child controls. (Inherited from System.Windows.Forms.Control)
public PropertyVisibleGets or sets a value indicating whether the control and all its child controls are displayed. (Inherited from System.Windows.Forms.Control)
public PropertyXMLReadReads the control information from an XML file that has previously been written with WriteXMLFile Method. This property will allow you to read your XML file from the design environment.  
public PropertyXMLStyleFileIf this property is set during design-time, the control will load the file indicated when it is instanced in run-time. If the file is not found then the control will simply ignore this property. This is useful for creating a unified look and feel to the controls.  
public PropertyXMLWriteWrites the control information to an XML file that can be read with ReadXMLFile Method. This property will allow you to write your XML file from the design environment.  
Top

Public Methods

 NameDescription
public MethodBeginInvokeOverloaded. Executes the specified delegate asynchronously with the specified arguments, on the thread that the control's underlying handle was created on. (Inherited from System.Windows.Forms.Control)
public MethodBringToFrontBrings the control to the front of the z-order. (Inherited from System.Windows.Forms.Control)
public MethodContainsRetrieves a value indicating whether the specified control is a child of the control. (Inherited from System.Windows.Forms.Control)
public MethodCreateControlForces the creation of the visible control, including the creation of the handle and any visible child controls. (Inherited from System.Windows.Forms.Control)
public MethodCreateGraphicsCreates the System.Drawing.Graphics for the control. (Inherited from System.Windows.Forms.Control)
public MethodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject)
public MethodDoDragDropBegins a drag-and-drop operation. (Inherited from System.Windows.Forms.Control)
public MethodDrawToBitmapSupports rendering to the specified bitmap. (Inherited from System.Windows.Forms.Control)
public MethodEndInvokeRetrieves the return value of the asynchronous operation represented by the System.IAsyncResult passed. (Inherited from System.Windows.Forms.Control)
public MethodFindFormRetrieves the form that the control is on. (Inherited from System.Windows.Forms.Control)
public MethodFocusSets input focus to the control. (Inherited from System.Windows.Forms.Control)
public MethodGetChildAtPointOverloaded. Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type. (Inherited from System.Windows.Forms.Control)
public MethodGetContainerControlReturns the next System.Windows.Forms.ContainerControl up the control's chain of parent controls. (Inherited from System.Windows.Forms.Control)
public MethodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
public MethodGetNextControlRetrieves the next control forward or back in the tab order of child controls. (Inherited from System.Windows.Forms.Control)
public MethodGetPreferredSizeRetrieves the size of a rectangular area into which a control can be fitted. (Inherited from System.Windows.Forms.Control)
public MethodHideConceals the control from the user. (Inherited from System.Windows.Forms.Control)
public MethodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
public MethodInvalidateOverloaded. Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. (Inherited from System.Windows.Forms.Control)
public MethodInvokeOverloaded. Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments. (Inherited from System.Windows.Forms.Control)
public MethodLogicalToDeviceUnitsOverloaded. Converts a Logical DPI value to its equivalent DeviceUnit DPI value. (Inherited from System.Windows.Forms.Control)
public MethodPerformLayoutOverloaded. Forces the control to apply layout logic to all its child controls. (Inherited from System.Windows.Forms.Control)
public MethodPointToClientComputes the location of the specified screen point into client coordinates. (Inherited from System.Windows.Forms.Control)
public MethodPointToScreenComputes the location of the specified client point into screen coordinates. (Inherited from System.Windows.Forms.Control)
public MethodPreProcessControlMessagePreprocesses keyboard or input messages within the message loop before they are dispatched. (Inherited from System.Windows.Forms.Control)
public MethodPreProcessMessagePreprocesses keyboard or input messages within the message loop before they are dispatched. (Inherited from System.Windows.Forms.Control)
public MethodReadXMLFileReads the control information from an XML file that has previously been written with WriteXMLFile Method  
public MethodRectangleToClientComputes the size and location of the specified screen rectangle in client coordinates. (Inherited from System.Windows.Forms.Control)
public MethodRectangleToScreenComputes the size and location of the specified client rectangle in screen coordinates. (Inherited from System.Windows.Forms.Control)
public MethodRefreshForces the control to invalidate its client area and immediately redraw itself and any child controls. (Inherited from System.Windows.Forms.Control)
public MethodResetTextResets the System.Windows.Forms.Control.Text property to its default value (System.String.Empty). (Inherited from System.Windows.Forms.Control)
public MethodResumeLayoutOverloaded. Resumes usual layout logic. (Inherited from System.Windows.Forms.Control)
public MethodScale (Inherited from System.Windows.Forms.Control)
public MethodScaleBitmapLogicalToDeviceScales a logical bitmap value to it's equivalent device unit value when a DPI change occurs. (Inherited from System.Windows.Forms.Control)
public MethodSelectActivates the control. (Inherited from System.Windows.Forms.Control)
public MethodSelectNextControlActivates the next control. (Inherited from System.Windows.Forms.Control)
public MethodSendToBackSends the control to the back of the z-order. (Inherited from System.Windows.Forms.Control)
public MethodSetBoundsOverloaded. Sets the bounds of the control to the specified location and size. (Inherited from System.Windows.Forms.Control)
public MethodShowDisplays the control to the user. (Inherited from System.Windows.Forms.Control)
public MethodSuspendLayoutTemporarily suspends the layout logic for the control. (Inherited from System.Windows.Forms.Control)
public MethodToString (Inherited from System.ComponentModel.Component)
public MethodUpdateCauses the control to redraw the invalidated regions within its client area. (Inherited from System.Windows.Forms.Control)
public MethodWriteXMLFileWrites the button information to an XML file that can be read using the ReadXMLFile Method  
Top

Public Events

 NameDescription
public EventBackColorChangedOccurs when the value of the System.Windows.Forms.Control.BackColor property changes. (Inherited from System.Windows.Forms.Control)
public EventBackgroundImageChangedOccurs when the value of the System.Windows.Forms.Control.BackgroundImage property changes. (Inherited from System.Windows.Forms.Control)
public EventBackgroundImageLayoutChangedOccurs when the System.Windows.Forms.Control.BackgroundImageLayout property changes. (Inherited from System.Windows.Forms.Control)
public EventBeforeTextDisplayOccurs just before the text of the button is drawn.  
public EventBindingContextChangedOccurs when the value of the System.Windows.Forms.BindingContext property changes. (Inherited from System.Windows.Forms.Control)
public EventButtonToggledOccurs when the state of a ToggleButton is changed.  
public EventCausesValidationChangedOccurs when the value of the System.Windows.Forms.Control.CausesValidation property changes. (Inherited from System.Windows.Forms.Control)
public EventChangeUICuesOccurs when the focus or keyboard user interface (UI) cues change. (Inherited from System.Windows.Forms.Control)
public EventClickOccurs when the control is clicked. (Inherited from System.Windows.Forms.Control)
public EventClientSizeChangedOccurs when the value of the System.Windows.Forms.Control.ClientSize property changes. (Inherited from System.Windows.Forms.Control)
public EventContextMenuStripChangedOccurs when the value of the System.Windows.Forms.Control.ContextMenuStrip property changes. (Inherited from System.Windows.Forms.Control)
public EventControlAddedOccurs when a new control is added to the System.Windows.Forms.Control.ControlCollection. (Inherited from System.Windows.Forms.Control)
public EventControlRemovedOccurs when a control is removed from the System.Windows.Forms.Control.ControlCollection. (Inherited from System.Windows.Forms.Control)
public EventCursorChangedOccurs when the value of the System.Windows.Forms.Control.Cursor property changes. (Inherited from System.Windows.Forms.Control)
public EventDockChangedOccurs when the value of the System.Windows.Forms.Control.Dock property changes. (Inherited from System.Windows.Forms.Control)
public EventDoubleClickOccurs when the control is double-clicked. (Inherited from System.Windows.Forms.Control)
public EventDpiChangedAfterParentOccurs when the DPI setting for a control is changed programmatically after the DPI of its parent control or form has changed. (Inherited from System.Windows.Forms.Control)
public EventDpiChangedBeforeParentOccurs when the DPI setting for a control is changed programmatically before a DPI change event for its parent control or form has occurred. (Inherited from System.Windows.Forms.Control)
public EventDragDropOccurs when a drag-and-drop operation is completed. (Inherited from System.Windows.Forms.Control)
public EventDragEnterOccurs when an object is dragged into the control's bounds. (Inherited from System.Windows.Forms.Control)
public EventDragLeaveOccurs when an object is dragged out of the control's bounds. (Inherited from System.Windows.Forms.Control)
public EventDragOverOccurs when an object is dragged over the control's bounds. (Inherited from System.Windows.Forms.Control)
public EventEnabledChangedOccurs when the System.Windows.Forms.Control.Enabled property value has changed. (Inherited from System.Windows.Forms.Control)
public EventEnterOccurs when the control is entered. (Inherited from System.Windows.Forms.Control)
public EventFontChangedOccurs when the System.Windows.Forms.Control.Font property value changes. (Inherited from System.Windows.Forms.Control)
public EventForeColorChangedOccurs when the System.Windows.Forms.Control.ForeColor property value changes. (Inherited from System.Windows.Forms.Control)
public EventGiveFeedbackOccurs during a drag operation. (Inherited from System.Windows.Forms.Control)
public EventHelpRequestedOccurs when the user requests help for a control. (Inherited from System.Windows.Forms.Control)
public EventImeModeChangedOccurs when the System.Windows.Forms.Control.ImeMode property has changed. (Inherited from System.Windows.Forms.Control)
public EventKeyDownOccurs when a key is pressed while the control has focus. (Inherited from System.Windows.Forms.Control)
public EventKeyPressOccurs when a character. space or backspace key is pressed while the control has focus. (Inherited from System.Windows.Forms.Control)
public EventKeyUpOccurs when a key is released while the control has focus. (Inherited from System.Windows.Forms.Control)
public EventLayoutOccurs when a control should reposition its child controls. (Inherited from System.Windows.Forms.Control)
public EventLeaveOccurs when the input focus leaves the control. (Inherited from System.Windows.Forms.Control)
public EventLocationChangedOccurs when the System.Windows.Forms.Control.Location property value has changed. (Inherited from System.Windows.Forms.Control)
public EventMarginChangedOccurs when the control's margin changes. (Inherited from System.Windows.Forms.Control)
public EventMouseCaptureChangedOccurs when the control loses mouse capture. (Inherited from System.Windows.Forms.Control)
public EventMouseClickOccurs when the control is clicked by the mouse. (Inherited from System.Windows.Forms.Control)
public EventMouseDoubleClickOccurs when the control is double clicked by the mouse. (Inherited from System.Windows.Forms.Control)
public EventMouseDownOccurs when the mouse pointer is over the control and a mouse button is pressed. (Inherited from System.Windows.Forms.Control)
public EventMouseEnterOccurs when the mouse pointer enters the control. (Inherited from System.Windows.Forms.Control)
public EventMouseHoverOccurs when the mouse pointer rests on the control. (Inherited from System.Windows.Forms.Control)
public EventMouseLeaveOccurs when the mouse pointer leaves the control. (Inherited from System.Windows.Forms.Control)
public EventMouseMoveOccurs when the mouse pointer is moved over the control. (Inherited from System.Windows.Forms.Control)
public EventMouseMoveMaskOccurs when the mouse pointer is moved over the mask picture. This can be used to set mouse cursors or global variables indicating the mouse is in an "inactive" area of the control.  
public EventMouseUpOccurs when the mouse pointer is over the control and a mouse button is released. (Inherited from System.Windows.Forms.Control)
public EventMoveOccurs when the control is moved. (Inherited from System.Windows.Forms.Control)
public EventPaddingChangedOccurs when the control's padding changes. (Inherited from System.Windows.Forms.Control)
public EventPaintOccurs when the control is redrawn. (Inherited from System.Windows.Forms.Control)
public EventParentChangedOccurs when the System.Windows.Forms.Control.Parent property value changes. (Inherited from System.Windows.Forms.Control)
public EventPreviewKeyDownOccurs before the System.Windows.Forms.Control.KeyDown event when a key is pressed while focus is on this control. (Inherited from System.Windows.Forms.Control)
public EventQueryAccessibilityHelpOccurs when System.Windows.Forms.AccessibleObject is providing help to accessibility applications. (Inherited from System.Windows.Forms.Control)
public EventQueryContinueDragOccurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. (Inherited from System.Windows.Forms.Control)
public EventRegionChangedOccurs when the value of the System.Windows.Forms.Control.Region property changes. (Inherited from System.Windows.Forms.Control)
public EventResizeOccurs when the control is resized. (Inherited from System.Windows.Forms.Control)
public EventRightToLeftChangedOccurs when the System.Windows.Forms.Control.RightToLeft property value changes. (Inherited from System.Windows.Forms.Control)
public EventSizeChangedOccurs when the System.Windows.Forms.Control.Size property value changes. (Inherited from System.Windows.Forms.Control)
public EventStyleChangedOccurs when the control style changes. (Inherited from System.Windows.Forms.Control)
public EventSystemColorsChangedOccurs when the system colors change. (Inherited from System.Windows.Forms.Control)
public EventTabIndexChangedOccurs when the System.Windows.Forms.Control.TabIndex property value changes. (Inherited from System.Windows.Forms.Control)
public EventTabStopChangedOccurs when the System.Windows.Forms.Control.TabStop property value changes. (Inherited from System.Windows.Forms.Control)
public EventTextChangedOccurs when the System.Windows.Forms.Control.Text property value changes. (Inherited from System.Windows.Forms.Control)
public EventUserDrawnButtonOccurs before the button has be drawn, allowing the developer to completely customize the appearance of the control.  
public EventUserDrawnButtonAfterOccurs after the button has been drawn by the control.  
public EventValidatedOccurs when the control is finished validating. (Inherited from System.Windows.Forms.Control)
public EventValidatingOccurs when the control is validating. (Inherited from System.Windows.Forms.Control)
public EventVisibleChangedOccurs when the System.Windows.Forms.Control.Visible property value changes. (Inherited from System.Windows.Forms.Control)
Top

See Also