Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello everybody,
I'm developing a custom control containing a TreeView control and a couple of buttons and etc ...
Now, the question is that how can I show the smart tags menu of the TreeView at the design time?
Posted

1 solution

Create a public property with a getter (no setter) and make it browsable:
C#
[Browsable(true)]
public TreeView Tree
    {
    get { return tvTree; }
    }
The "Tree" item will then appear in the properties box of the designer, will all it's subitems.
"tvTree" is the TreeView you dropped onto your user control.
 
Share this answer
 
v2

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