Link to home
Start Free TrialLog in
Avatar of Member_2_6479049
Member_2_6479049

asked on

Function to send focus to the next control in vb.net 2013

Hi guys,

I'm building my first project in vb.net 2013,  and I'm looking for a function to send the focus to the next control, I mean any control,   for instance, I'm using this code in all my controls:

If Asc(e.KeyChar) = 13 Then
            txtsomething.Focus()
 End If

But I want to use a function to do that, do you guys has any example of it?

Thank you so much.
ASKER CERTIFIED SOLUTION
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada 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 Member_2_6479049
Member_2_6479049

ASKER

Thank you Jacques,

Sorry for answer until now, It is a good tip.