문제

I set focus with the Tab order tool of Visual Studio 2010 for my component in a form. I tried a couple of times. Now, when focus is in the last Tab Index and if I press TAB many times, it goes somewhere I don't know. It never come to the first Tab Index. How can I fix this problem?

도움이 되었습니까?

해결책

I would try two things here:

  1. Try to remove some of your controls and see if the focus problem is fixed, if not, remove more and more until it will be fixed and then you will have a better clue of which control ruins the order.

  2. Each control has a Focused property. you can have a different thread running over all of your controls and checks which one has this property value on "true".

    • this is a bit long but if you can't find the problem in a different way you can try that
    • more about the Focused property here
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top