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:
public class MyControl : WebControl, INamingContainer
private TextBox textBox1;
private LinkButton linkButton1;
protected override void CreateChildControls()
textBox1 = new TextBox();
Controls.Add(new LiteralControl(" "));
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;
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?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL