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


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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SuperEditBase Class
SuperEditBase Members
Advance Event

 

 


Copyright © GrapeCity, inc. All rights reserved.