Spread Windows Forms 12.0 Product Documentation
AutoAdvance Property (SuperEditBase)
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : AutoAdvance Property
Gets or sets whether the focus moves to another control when the pointer is moved with the arrow keys.
Syntax
'Declaration
 
Public Overridable Property AutoAdvance As Boolean
'Usage
 
Dim instance As SuperEditBase
Dim value As Boolean
 
instance.AutoAdvance = value
 
value = instance.AutoAdvance
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.
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;
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
See Also

Reference

SuperEditBase Class
SuperEditBase Members
Advance Event