ControlDesigner vs. ComponentDesigner

cyuksel

Newcomer
Joined
Mar 14, 2003
Messages
18
Location
turkey
Hi Divil,
since my ControlDesigner could not be work with my rootdesigner, I got Ellipse's componentdesigner in ShapeLibrary.It worked with my rootdesginer. I noticed that only diffrence between mine and theirs is the class i derived from. since i wanted to write designer for my usercontrols i used ControlDesigner as base. Aren't i right?

then i attemted to use ComponentDesigner as base class,it is weird but it works well.
Is it wrong that i wrote ComponentDesigner for my usercontrol?
Thanks.
 
The designer for a control should either be inherited from ControlDesigner or ParentControlDesigner - both should work.

I'm unsure why ComponentDesigner would work - that's meant for components, i.e. classes with no user interface. But still, if it works...
 
Back
Top