By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,165 Members | 1,525 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,165 IT Pros & Developers. It's quick & easy.

emulate tab key

P: n/a
HI

In a edit form which has text boxes is it possible to emulate TAB and
Shift-TAB with the UP & DOWN keys

Thanks in advance
Feb 16 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
yes have a look at SelectNextControl

'Example
Private Sub Textbox_KeyUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles txt1.KeyUp, txt2.KeyUp,
txt3.KeyUp
If e.KeyCode = Keys.Up Then
Me.SelectNextControl(CType(sender, Control), False, True, True, True)
ElseIf e.KeyCode = Keys.Down Then
Me.SelectNextControl(CType(sender, Control), True, True, True, True)
End If
End Sub

"Starbuck" <st******@tisconi.com> wrote in message
news:u$*************@TK2MSFTNGP09.phx.gbl...
HI

In a edit form which has text boxes is it possible to emulate TAB and
Shift-TAB with the UP & DOWN keys

Thanks in advance

Feb 16 '06 #2

P: n/a
Many thanks
"AMDRIT" <am****@hotmail.com> wrote in message
news:uS**************@TK2MSFTNGP09.phx.gbl...
yes have a look at SelectNextControl

'Example
Private Sub Textbox_KeyUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles txt1.KeyUp, txt2.KeyUp,
txt3.KeyUp
If e.KeyCode = Keys.Up Then
Me.SelectNextControl(CType(sender, Control), False, True, True, True)
ElseIf e.KeyCode = Keys.Down Then
Me.SelectNextControl(CType(sender, Control), True, True, True, True)
End If
End Sub

"Starbuck" <st******@tisconi.com> wrote in message
news:u$*************@TK2MSFTNGP09.phx.gbl...
HI

In a edit form which has text boxes is it possible to emulate TAB and
Shift-TAB with the UP & DOWN keys

Thanks in advance


Feb 17 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.