المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Custom UserControl and the Designer



C# Programming
10-11-2009, 10:30 PM
Hello,

i've got a custom UserControl (UserControl-Class with a panel in it) and now i want to let it interact as a container in the Designer. Well - on the web I found a lot of tutorials for this problem, but my problem is, that the designer doesn't put the Controls i add to my control to the panel. It put them into the UserControl itself.

So how can i tell the designer, that it should use "panel" as it's container and not the UserControl itself? I've tried different thinks like make a own class which extends "System.Windows.Form.Panel" and tell them, that it is the Container for the designer and puttet it into my UserControl but all those things doesn't work...

Thanks for your help http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif