I have four textbox controls on my windows form. After entering something in textbox1 and if press enter the cursor should go to textbox2. Similary for all the textboxes. How to do it?
Use the Control.KeyUp Event to check if e.KeyCode is Keys.Enter, if so use the GetNextControl method to find the next control in tab order and Select it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.