Hi all,

I'm developing server controls with composition techniques and I have a problem.
Like old Active X, I want to resize in design time the child controls inside
my new control.

I have this code on main class:

[Designer(typeof(MyControl.Controls.Design.MyDesigner)),
ParseChildren(true),
PersistChildren(false)]

[ToolboxData("<{0}:MyControl runat=server></{0}:MyControl>")]
public class MyControl : WebControl, INamingContainer
{
private TextBox textBox1;
private LinkButton linkButton1;
protected override void CreateChildControls()
{
linkButton1=new LinkButton();
textBox1 = new TextBox();
Controls.Add(linkButton1);
Controls.Add(new LiteralControl("&nbsp;&nbsp;&nbsp;"));
Controls.Add(textBox1);
}

}

And now on design time I want to resize with the mouse de textbox1 like Microsoft
TextBox Server Control does on design time.

I try adding a designer like this:

public class MyDesigner : ControlDesigner
{

public override string GetDesignTimeHtml()
{
MyControl control = (MyControl)Component;
ControlCollection childControls = control.Controls;

return base.GetDesignTimeHtml();
}


But I can not catch the resize event because on the ControlDesigner class
there is a protected method OnControlResize that I have not access.

Any solutions about this?

Thanks.

Vincent.