I'm facing a weird and erratic issue in a WinForms project. In a user control I have a toolbar (3rd party control) and an a subclassed RichTextBox.
The toolbar has dock=top, while the RTB has dock=fill.
I used "bring to front" on the RTB to avoid Toolbox overlapping RTB.
At design time everything is fine, both in control design and in forms where the control is used:
At runtime I experience an erratic behaviour: the control is always rendered fine as long as I place it on the form without touching any property.
If I change some property value (for example, I have a ShowFont property that I can set to false to hide fonts dropdown, both at design time and at runtime) it sometimes gets screwed and from that moment at runtime the bar overlaps the RTB:
This is strange because there is no code in the control that adds/removes subcontrols, thus altering their order.


