Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • *Gurus*
Posted

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...

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...