Hi,
Most probably it is done in the InitializeComponent method when you add the
control to the Controls collection
I also suggest you to use docking/anchoring.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Martijn Mulder" <i@mwrote in message
news:44***********************@news.wanadoo.nl...
>I want my custom UserControl to size and resize with its parent, a Form.
But when I use the code
Size=Parent.ClientSize;
in the constructor of myUserControl, Parent is null and the operation
fails. What is the proper place to put this code?