Xceed SmartUI for WinForms v3.6 Documentation
Xceed.SmartUI.v3.6 Assembly / Xceed.SmartUI Namespace / SmartControl Class / GainFocusOnMouseDown Property


In This Topic
    GainFocusOnMouseDown Property
    In This Topic
    Gets or sets a boolean value indicating if the SmartControl gains focus when the mouse button is pressed.
    Syntax
    'Declaration
     
    <DescriptionAttribute("Indicates if the SmartControl gains focus when the mouse button is pressed.")>
    <CategoryAttribute("Behavior")>
    <BrowsableAttribute(True)>
    <MergablePropertyAttribute(True)>
    <LocalizableAttribute(False)>
    Public Property GainFocusOnMouseDown As Boolean
    'Usage
     
    Dim instance As SmartControl
    Dim value As Boolean
     
    instance.GainFocusOnMouseDown = value
     
    value = instance.GainFocusOnMouseDown
    [Description("Indicates if the SmartControl gains focus when the mouse button is pressed.")]
    [Category("Behavior")]
    [Browsable(true)]
    [MergableProperty(true)]
    [Localizable(false)]
    public bool GainFocusOnMouseDown {get; set;}

    Property Value

    true if the SmartControl gains focus when the mouse button is pressed; false otherwise.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also