Spread Windows Forms 6.0 Product Documentation
Advance Event
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : Advance Event


Glossary Item Box

Occurs when the AutoAdvance property is set to true and the focus moves to the next or previous control in response to an arrow key being pressed.

Syntax

Visual Basic (Declaration) 
Public Event Advance As AdvanceEventHandler
Visual Basic (Usage)Copy Code
Dim instance As SuperEditBase
Dim handler As AdvanceEventHandler
 
AddHandler instance.Advance, handler
C# 
public event AdvanceEventHandler Advance

Remarks

The user can press the arrow keys to move the focus through the tab order of the controls, as determined by the TabIndex property, when the AutoAdvance property is set to true. The user can press the Up Arrow or Left Arrow key to move the cursor to the previous control and the Down Arrow or Right Arrow key to move the cursor to the next control.

The Advance event occurs when the user performs one of the following actions:

  • Presses the Left Arrow key when the cursor is positioned on or before the first character in the control
  • Presses the Right Arrow key when the cursor is positioned on or after the last character in the control
  • Presses the Up Arrow key when the cursor is positioned in the first line of the control or when the cursor is positioned on or before the first character in the control
  • Presses the Down Arrow key when the cursor is positioned in the last line of the control or when the cursor is positioned on or after the last character in the control

If the AutoAdvance property is set to false (its default value), the Advance event does not occur.

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.