when my form is shown, i want to adjust the height of certain control, i do this in the Shown Event handler, it doesn't work, so which event should i handle?
+2
A:
The quick answer is, use the Layout event. But with .NET 2.0 and up you really have much better tools at your disposal. I would look into the Anchor property, the Dock property, the TableLayoutPanel, FlowLayoutPanel, etc.
It's very rare that you should need to manually layout controls unless you're implementing a custom layout.
Josh Einstein
2010-03-18 02:55:25