Spread Windows Forms 6.0 Product Documentation
AutoAdvance Property
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : AutoAdvance Property


Glossary Item Box

Gets or sets whether the focus moves to another control when the pointer is moved with the arrow keys.

Syntax

Visual Basic (Declaration) 
Public Overridable Property AutoAdvance As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SuperEditBase
Dim value As Boolean
 
instance.AutoAdvance = value
 
value = instance.AutoAdvance
C# 
public virtual bool AutoAdvance {get; set;}

Property Value

Boolean value: true to allow the user to automatically advance with arrow keys; false otherwise

Remarks

When the this property is set to true, the user can use the arrow keys to move the cursor to other controls. Set the TabIndex and TabStop properties to designate a tab order. For more information, see the TabIndex and TabStop properties in the Microsoft .NET Framework Reference.

Press these keys To move
Up Arrow or Left Arrow To the previous control when the cursor is on or before the first character in a control
Down Arrow or Right Arrow To the next control when the cursor is on or after the last character in a control
Up Arrow To the previous control when the cursor is on the first line in a control
Down Arrow To the next control when the cursor is on the last line in a control

When the user moves the cursor to the next control using an arrow key, an Advance event occurs.

Example

This example test the pointer position.
C#Copy Code
control.Text = "This is a test of the pointer position.";
control.EditModeCursorPosition = FarPoint.Win.EditModeCursorPosition.LastKnownPosition;
control.AcceptsTab = true;
control.AutoAdvance = false;
control.MarginLeft = 5;
Visual BasicCopy Code
control.Text = "This is a test of the pointer position."
control.EditModeCursorPosition = FarPoint.Win.EditModeCursorPosition.LastKnownPosition
control.AcceptsTab = True
control.AutoAdvance = False
control.MarginLeft = 5

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.