We've got the same kind of problem. We have in our application some deep layering of controls. We don't want to change it because it follows a hierarchical logic. I definitely thinks Krypton should be able to handle it right, even if it might be slow. We made lots of testing but unfortunately we were not able to pinpoint the exact problem (in our full blown application I mean).
Essentially, the problem occurs in two situations : if you resize the window and if you get it down on the task bar (and restore it back after). It is very annoying for the user because the screen becomes unreadable. One has to close the tabs and open them back. In our tests, we noticed that, for the same controls combination, if the controls were added dynamically it would not work, whereas if the controls were added at design time (with the designer) it would resize nice. But we could not really see what was different between the two codes, and our application needs to build some parts of the interface at run-time.
We have come across this thread last week and found out that the proposed fix could help :http://componentfactory.stage.riverwillow.com.au/forums/viewtopic.php?f=3&t=3194
- Code: Select all
protected override void OnSizeChanged(EventArgs e)
It seems to work although we're not sure if it is the right way to go and we would prefer not to have to put that fix everywhere in the controls where we see the bug.
Phil, we have made a small repro code so you can try and fix the bug. Note that it occurs only on Win7 64 bit. We have no problems on Win7 32 bit or Win XP (tested on 32bit, not 64).
I will let you look into the issue. I hope you can find a fix soon! Please keep me informed about it.