Hi everyone,
I have a baseform which has 3 controls (a Panel, a splitter and a UserControl) that add to the form's Controls collection. I inherit from this form and add some controls to Panel (not directly to the form's Controls collection). The 3 base controls are docked such that the usercontrol and the splitter are on the right and the panel fills the remaining space. Obviously I want the splitter between the Panel and the usercontrol, which is what shows at design time, however I found at runtime the splitter is on the far right with the usercontrol to the left (making the splitter useless). Debugging this I find that the form's controls collection reorders itself when the form is told to show.
Has anyone else experienced this and have any information as to what is causing the controls collection to re-order. I don't want to constantly check the control order when I call show.
Thanks,
Mark.