Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi how can i create a smart tag for a component that i created?
Posted

 
Share this answer
 
This is actually a fairly complicated thing to do. You are going to need to use the System.ComponentModel.Design library, and custom Attributes. You are going to have to implement classes that inherit from System.Windows.Forms.Design.ControlDesigner, and from DesignerActionList.

There are several articles on CodeProject that can help you[^]

You might start here at the Microsoft walk-through:[^]. And also see the example here on StackOverFlow:[^].

And, finally, Matthew MacDonald's excellent book on WinForms has chapters on building complex controls with smart-tags.

I looked into this, and decided it was too much effort for me, but don't let that stop you :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900