Why does TabStop stop working??

Posted by Jerry on Stack Overflow See other posts from Stack Overflow or by Jerry
Published on 2009-04-15T18:49:44Z Indexed on 2010/03/24 20:03 UTC
Read the original article Hit count: 324

Filed under:
|

I have a project that uses a series of auto-generated user control instances. The user-control itself exists, but I populate a panel with a series of these user controls, one for each item in my collection.

Each user control displays a ton of information, but only ONE text field is editable. All of the other fields have TabStop set to false, and are marked as ReadOnly.

The tab order of each user control is set at the time it is created so that the tab-key goes from one field to the next (or ... it's supposed to).

When I have TWO fields on my user control whose TabStop is set to true, everything works great. But if I only have ONE field whose TabStop is true, the tab key stops working, and I have to physically CLICK on the next user control for it to gain focus.

What's up? Has anyone else seen this behavior? Am I doing something stupid as usual?

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms