Spread WinForms 15
FarPoint.Win Assembly / FarPoint.Win Namespace / ElementWindowless Class / CanFocus Property
Example


In This Topic
CanFocus Property (ElementWindowless)
In This Topic
Gets or sets whether the element can receive focus.
Syntax
'Declaration
 
Public Overridable Property CanFocus As Boolean
 
'Usage
 
Dim instance As ElementWindowless
Dim value As Boolean
 
instance.CanFocus = value
 
value = instance.CanFocus
Example
private void button1_Click(object sender, System.EventArgs e)
{
element.Visible = true;
element.Enabled = false;
element.Selectable = false;
element.CanFocus = false;
}
See Also