VB.NET restriction for tabs?

I inherited the frankenstein VB6 "Converted" to the VB.NET winform application. This application has a metric ton of fields in it, users rightly complained that the order of the tabs is off (after a certain moment, it starts to jump all over).

Finding out something in the order of the tabs, I went in and turned on View> Tab Order, and it looked good.

To make sure that I looked at the form again, and when I'm in standby mode, everything is fine, but when the application starts, it still starts jumping around the same area as before ?! Has anyone else come across this and how did you decide if you did?

[Edit]: These input forms are on separate tabs in the tab control, which probably makes things even more complicated.

+3
source share
3 answers

Are there any weird Focus calls in the code that override the order of the tabs and manually adjust the focus of the application?

In the past, I had problems setting tabs, and as a rule, I simply resorted to using the application from scratch and manually adjusted the order. I understand that this may not be what you are looking for, but I know nothing

+3
source

, , , . . . , / , .

. , , . , . , , - "" , , - " ". , . , - .

2: ! . , , , . !

+2

, , , . , , , : , .

Otherwise, you need to check your user interface code for some calls Control.Focusthat may interfere with the default tab order at startup, time. Some verification code may change focus to the “next” control after it has completed successfully (or “back” to the previous control if the verification fails).

+1
source

Source: https://habr.com/ru/post/1777682/


All Articles