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 |
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.
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8