Spread Windows Forms 6.0 Product Documentation
Focused Property
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > ElementControl Class : Focused Property


Glossary Item Box

Gets whether the control has focus.

Syntax

Visual Basic (Declaration) 
Public Overrides ReadOnly Property Focused As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ElementControl
Dim value As Boolean
 
value = instance.Focused
C# 
public override bool Focused {get;}

Property Value

Boolean value: true if control has focus; false otherwise

Remarks

Specify whether the control can receive the focus by setting the CanFocus property or the Enabled property.

Move the focus to the control by calling the Focus method.

This property is available at run time only.

For some controls, when the control receives the focus, if it can, the control can display a focus rectangle. Specify whether and how the focus rectangle appears by setting the DrawFocusRectangle property.

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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.