Spread Windows Forms 15.0
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementWindowless Class / Selectable Property
Example


In This Topic
    Selectable Property (ElementWindowless)
    In This Topic
    Gets or sets whether the control can receive focus.
    Syntax
    'Declaration
     
    
    Public Overridable Property Selectable As Boolean
    'Usage
     
    
    Dim instance As ElementWindowless
    Dim value As Boolean
     
    instance.Selectable = value
     
    value = instance.Selectable
    public virtual bool Selectable {get; set;}
    Example
    private void button1_Click(object sender, System.EventArgs e)
    {
    element.Visible = true;
    element.Enabled = false;
    element.Selectable = false;
    }
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    element.Visible = True
    element.Enabled = False
    element.Selectable = False
    End Sub
    See Also