AlexCode Posted October 22, 2003 Posted October 22, 2003 Hi guys... I need some help now... I need to build a UserControl that acts just like a Panel. My problem is that I can't expose the container, I can't drag anything into it at design-time like a normal Panel control. I've worked around this inheriting from the Panel Control and not from the UserControl and it works perfectly but how can I make a UserControl act like a Panel control? Thanks... :D Quote Software bugs are impossible to detect by anybody except the end user.
*Gurus* divil Posted October 22, 2003 *Gurus* Posted October 22, 2003 Derive your designer from ParentControlDesigner. If you don't have a designer, just associate ParentControlDesigner with your class via the DesignerAttribute class. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
AlexCode Posted October 22, 2003 Author Posted October 22, 2003 Thanks divil... I'll try that... Quote Software bugs are impossible to detect by anybody except the end user.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.