Hi,
I had problem making it work from your example. But I manage to find the
correct resources from your code.
Thanks

, without your example I would still be lost
Here is the url which i found that allow me to manage design time as well as
use those web controls behind to make things work
http://msdn.microsoft.com/library/de...chitecture.asp
Joey
"Matt" <> wrote in message
news: oups.com...
> What worked for me was to create my own Designer class (extending
> System.Web.UI.Design.ControlDesigner). Then you override
> GetDesignTimeHtml() method and in that method you can do stuff like:
>
> StringWriter sw = new StringWriter();
> HtmlTextWriter tw = new HtmlTextWriter(sw);
>
> Label lblLink = new Label();
> lblLink.Text = "<";
> lblLink.ForeColor = System.Drawing.Color.Blue;
> lblLink.Style.Add("text-decoration", "underline");
> lblLink.RenderControl(tw);
>
> If you want to get a reference to the actual control to read a property
> or something:
>
> MyCustomControl myCC = (MyCustomControl)this.Component;
>