I have no such problem. I did the following: I added a new user control. I named it BaseControl. I then compiled the project. After compiling, I added another user control. I named it MyNewControl. I opened the code and made it inherit from BaseControl instead of UserControl. I saved it. Whenever I open MyNewControl in Visual Studio, I see it as if it were the good old UserControl. I can add items visually by grabbing toolbox items, etc. This designer behavior should be controlled by the DesignerAttribute attribute of your control class. Maybe you are using a custom designer? The following is the designer of the UserControl: [Designer("System.Windows.Forms.Design.UserControlDocumentDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(IRootDesigner))] That is, for .Net 2.0. I guess you can make it version-independent by removing the version, culture, and public key token parts. MCP- Marked As Answer byLing WangMSFT, ModeratorSaturday, September 26, 2009 4:59 PM
-
|