Design Time Control Property Option

  • Thread starter Thread starter Tomislav Markovski
  • Start date Start date
T

Tomislav Markovski

Hello,
How can I add a link to a control which appears in the
Propery tab during design-time for a certain control. For
example, something like the SqlDataAdapter has link
options for "Configure Data Adapter", "Generate DataSet"
etc. The links that appear at the bottom where Property
Description appears.
Thank you very much in advance.

Tomislav
 
Hi,

you must create a designer (derive from ControlDesigner)
for that class and then override the Verbs property. Here
you can add DesignerVerbs that have a name (the one you
see as a link) and an event handler. Then apply the
designer to your class using the DesignerAttribute.
The links will also appear in the context menu at design
time when you right click the control...

regards,
Iulian
 
Back
Top