Spread Windows Forms 12.0 Product Documentation
Selectable Property (ElementWindowless)
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > ElementWindowless Class : Selectable Property
Gets or sets whether the user can interact with the element.
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;}

Property Value

Boolean value: true if user can select items; false otherwise
Remarks

Use this property to specify whether users can interact with the element. For example, whether they can push a button or select an item.

This property is available at run time only.

Contrast this property with the CanFocus property and the Enabled property. Use the CanFocus property to specify whether an element can receive the focus. Use the Enabled property to specify whether the element looks grayed and users can interact with it.

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

Reference

ElementWindowless Class
ElementWindowless Members
CanFocus Property
Enabled Property