Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementWindowless Class / Enabled Property
Example


In This Topic
    Enabled Property (ElementWindowless)
    In This Topic
    Gets or sets whether the element is enabled.
    Syntax
    'Declaration
     
    
    Public Overridable Property Enabled As Boolean
    'Usage
     
    
    Dim instance As ElementWindowless
    Dim value As Boolean
     
    instance.Enabled = value
     
    value = instance.Enabled
    public virtual bool Enabled {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