Hello Gurus :-)
I observe a very strange behaviour of my code and don't know what I might accidentially have done...
In my windows form I have a TabControl that holds 4 different TabPage elements, on each of which other controls are placed (buttons, datagridviews, etc.). Everything looks fine at design time – just as it did at runtime until yesterday :-( when I made many changes to the program. As far as I remember, there was nothing in the context of the tabs, but what happens at runtime now is somewhat inexplicable to me:
At it start, the main form shows TabPage1, which seems completely ok. Changing to the other tabs, however, shows weird results: The controls are jumbled, some are invisible (or covered by anything?) and others moved to seemingly random places on the tab (nothing is resized!). The tabPages show always identical, i.e. the probable offset to the controls doesn't change by activating/deactivating them 5 or 10 times and the "distorted" tabPage3 (as example) looks the same after each restart
Being only a hobby programmer, I unfortunately have no clue what to do... Can you probably provide me any hints on how I could detect which event handler pushes my controls around - or at least where I would start looking?
Thank you ever so much,
What I have tried:
I searched for every event handler that might - to my understanding - be involved in the selection of the tabPages. No suspicious code found.