How to make a UserControl object acts as a control container design-time by using Visual C# .NET or Visual C# 2005

How to make a UserControl object acts as a control container design-time by using Visual C# .NET or Visual C# 2005

Is there anybody who knows how this can be done

Thanks in advanced,

- Nima



Answer this question

How to make a UserControl object acts as a control container design-time by using Visual C# .NET or Visual C# 2005

  • Gustavo Carrazoni

    Hi Dinesh.

    Thank you for the answer, but I don't think that the attribute is a part of the .Net Compact Framework 2.0 :-(

    So do you have another idea

    Regards, Nima


  • myalo

    See this.



  • BrianHearn

    Hello Nima,

    You have to add [Designer ("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof (IDesigner))] attribute to your User Control class to have it support design-time level features.

    You can refer to http://support.microsoft.com/kb/813450 for more details.

    Regards,

    Dinesh



  • How to make a UserControl object acts as a control container design-time by using Visual C# .NET or Visual C# 2005