Spread Windows Forms 11.0 Product Documentation
CanFocus Property (SuperEditBase)


FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : CanFocus Property
Gets or sets whether the edit control can receive focus.
Syntax
'Declaration
 
Public Overrides Property CanFocus As Boolean
'Usage
 
Dim instance As SuperEditBase
Dim value As Boolean
 
instance.CanFocus = value
 
value = instance.CanFocus
public override bool CanFocus {get; set;}

Property Value

Boolean value: true if element can receive focus; false otherwise
Remarks

Use this property to specify whether the edit control can receive the focus.

If this property is set to true, you can check whether the control has the focus, or move the focus to the edit control, by calling the Focus method or check whether the control has the focus using the Focused property.

If you do not want the edit control to receive focus nor for the user to interact with it, set the Enabled property to false.

Some controls display a cursor when they receive the focus. Specify the position of the cursor by setting the EditModeCursorPosition property.

Contrast this property with the Enabled property and the Selectable property. Use the Enabled property to specify whether the control looks grayed and users can interact with it. Use the Selectable property to specify whether users can interact with the control, such as pressing a button.

See Also

Reference

SuperEditBase Class
SuperEditBase Members
Focus Method
Enabled Property
Focused Property
EditModeCursorPosition Property
Selectable Property