Questions & Answers
 

ControlBase

Defines the base class for all controls.

Namespace : Winbooks.Framework.Controls
Assembly : WbksFw


Syntax

public abstract class ControlBase


Members

  • Properties PropertyPartPropertyPart
  • Modifier

    Name

    Description

    Name

    Gets the name of the control

    Parent

    Gets or sets the parent container of the control.

    ControlStyle

    Gets or sets the style of the control.

    Session

    Gets the current sesssion

    Text

    Gets or sets the text which is associated with the control.

    SolutionAndTransIndexes

    Gets the solution and TransIndexes of the control.

    GroupLinkId

    Gets or sets the ID of a group of controls that have the same behaviour.

    BackColor

    Gets or sets the background color of the control.

    ForeColor

    Gets or sets the foreground color of the control.

    Width

    Gets or sets the width of the control.

    Size

    Gets or sets the height and width of the control.

    Height

    Gets or sets the height of the control.

    Font

    Gets or sets the font of the text displayed by the control.

    ControlMode

    Gets or sets locating and resizing mode of the cotrol.

    Enabled

    Gets or sets a value indicating whether the control can respond to user interaction.

    Visible

    Gets or sets a value indicating whether the control is displayed.

    Focused

    Shouldn t allow sets. Gets a value indicating whether the control has input focus.

    Key

    Gets or sets the form-unique identifier of the control.

    TabStop

    Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.

    Source

    Gets or sets data source of the control.

    SwitchFormToEditMode

    Gets or sets a value indicating whether the form is changed to editmode if there is any changes for the control.

    Top

    Gets or sets the distance, in pixels, between the top edge of the control and the top edge of its container s client area.

    Left

    Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container s client area.

    Bottom

    Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container s client area. Shouldn t allow sets

    Right

    Gets the distance, in pixels, between the right edge of the control and the left edge of its container s client area. Shouldn t allow sets

    Location

    Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container.

    DisableBackColor

    Gets or sets the background color of the control when it is disabled.

    DisableForeColor

    Gets or sets the foreground color of the control when it is disabled.

    IsInEdit

    Gets the value indicates that control is edited by user.

    ToolTip

    Gets or sets the ToolTip of the control.

    VisualEffect

    Gets or sets a value indicating whether visual effect will be applied for the control.

    VisualEffectImage

    Gets or sets to the image that is used for visual effect.

    KeyPressKeys

    Gets or sets the keys that handled by KeyPress event. If empty, all keys will be handled.

    DragMode

    Gets or sets the drag mode of the control.

    EnterNotAsTab

    Gets or sets a value indicating whether Enter key will have the same behaviour as Tab key.

    ValidatingMode

    Gets or sets a value indicating when the Validating event of Control will be called.

    TextChangedMode

    Gets or sets a value indicating when the TextChanged event of Control will be called.

    CancelValidation

    Gets or sets a value indicating whether the Validation of Control will be cancelled or not.

    MessageText

    Gets or sets a value indicating whether the MessageText of Control.

    MessageControl

    Gets or sets a value indicating whether the MessageControl of Control.

    ControlPluginEventHandler

    Gets or sets object handle plugin events of Control.


  • Methods MethodPartMethodPart
  • Modifier

    Name

    Description

    L

    Translates a specified text.

    L

    Translates a specified text and replace it s format items with the text equivalent of the value. of a corresponding Object instance in a specified array.

    L

    Gets a translation string by specified solution index and string index.

    L

    Gets the translation string by specified solution index and string index and replace it s format items with the text equivalent of the value of a corresponding Object instance in a specified array.

    Dispose

    Dispose the control

    InitializeLifetimeService

    Obtains a lifetime service object to control the lifetime policy for this instance.

    ControlBase

    Initializes a new instance of the ControlBase class.


  • Events EventPartEventPart
  • Modifier

    Name

    Description

    ParentChanged

    Click

    Occurs when the control is clicked.

    DoubleClick

    Occurs when the control is double clicked.

    TextChanged

    Occurs when the user changes the text of the control.

    Validated

    Occurs when the control is finished validating.

    Validating

    Occurs when the control is validating.

    LostFocus

    Occurs when the control loses focus.

    GotFocus

    Occurs when the control got focus.

    KeyPress

    Occurs when a key is pressed while the control has focus.

    VisibleChanged

    Occurs when the visibility of control changed.



Top