dennismagno / metroframework-modern-ui

My humble attempt to bring the new Modern UI alias Metro UI of Windows 8 to .NET Windows Forms applications.
http://dennismagno.github.io/metroframework-modern-ui
Other
861 stars 1.08k forks source link

TabControl issue - Tabs gets random Orders ;-( #22

Open Spegeli opened 7 years ago

Spegeli commented 7 years ago

I got a very wired problem with TabControl. My Setup looks like: http://i.epvpimg.com/YudDb.png But as soon i compile it out of VS2015 it looks like this: http://i.epvpimg.com/EWnxb.png

as you can see the Tab Order is not the one i set ("Hilfe" got switched from position 6 to position4).

I made a Video which shows the issue: http://sendvid.com/yuodo8py

Is this a "Settings" thing or is it a issue inside the Metro Tab Control self?

dennismagno commented 7 years ago

I have experience this issue before. But when debugging I cannot replicate the issue : (

veevandyke commented 7 years ago

I have more information on this issue. It appears that most controls in the framework actually create 3 "tabbable" controls. -- One main control and two "nested" controls. Kind of like when you create a tab page or a groupbox. (The exception is labels - they create two.)

I went into the framework controls and made sure that all extraneous within the main control were set to TabStop=False (like horizontalscrollbar and verticalscrollbar).

Otherwise, if you try and reorder the tabs in any way, those do not get reordered, and it can cause your app to tab to them, even though they are not visible controls. HTH.