Home All Groups Group Topic Archive Search About
Author
16 Feb 2006 10:00 PM
Starbuck
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

Author
16 Feb 2006 11:11 PM
AMDRIT
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



Show quoteHide quote
"Starbuck" <starb***@tisconi.com> wrote in message
news:u$4BdR0MGHA.536@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
>
>
Author
17 Feb 2006 8:55 AM
Starbuck
Many thanks


Show quoteHide quote
"AMDRIT" <amd***@hotmail.com> wrote in message
news:uSn1v40MGHA.2604@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" <starb***@tisconi.com> wrote in message
> news:u$4BdR0MGHA.536@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
>>
>>
>
>