Click here to Skip to main content
16,023,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

1) During Run Time in my VB.Net form I want the cursor to be in first field as default, when I press the "New" button. How should I do that?

2) How should I make the cursor go to the next field automatically if I press the Tab button?

Can you help me out to solve above two issues?
Posted
Updated 21-Sep-10 0:02am
v3

1 solution

1) Either call the Focus method for the control in the Load event (or the constructor), or in the designer, set the tab order of the first control to 0.

2) In the designer, you need to set the tab order of every control.
 
Share this answer
 
Comments
parchuri08 25-Sep-10 18:02pm    
very good Simmons I used focus method in the button for which i want cursor to automatically go to next field and set tab control . Now it is working. U really helped me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900