Click here to Skip to main content
15,890,882 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi folks!!

I have a windows form in which I have few controls , I have set the tab order for each control but its not working properly. Means when I press tab at run time it doesn't stops at desired control. even I have set the tabstop property to true.
Please Help.
Posted
Updated 22-Aug-17 20:59pm
v2

No, you don't set it properly. Don't forget two things: 1) Tab stop should be enabled, see System.Windows.Forms.Control.TabStop; 2) control containers, parents of your controls also have TabIndex which should be taken into account.

—SA
 
Share this answer
 
Read more about the tabindex property here - http://msdn.microsoft.com/en-us/library/ms534654(v=vs.85).aspx[^].

Make sure that the tab index property is not negative.
 
Share this answer
 

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