Link to home
Start Free TrialLog in
Avatar of macauken
macauken

asked on

using any key instead of TAB in textbox

Any expert have idea ? cause using other key will make char input to textbox.text, but it should be a TAB key now.
ASKER CERTIFIED SOLUTION
Avatar of Erick37
Erick37
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of macauken
macauken

ASKER

I found the way soluation

  Protected Overrides Sub OnKeyPress(ByVal e As System.Windows.Forms.KeyPressEventArgs)
            Select Case e.KeyChar
                Case "+"c
                    SendKeys.Send("{TAB}")
                    e.Handled = True
                Case "-"c 'Keys.Subtract
                    SendKeys.Send("+{TAB}")
                    e.Handled = True
            End Select
        End Sub