How do you hide parts of a usercontrol from the toolbar.
-
I've got a usercontrol that uses quite a few other usercontrols putting it together. I only want the "complete" usercontrol to be visible in the toolbar and not the pieces that make it up. How do I hide the parts I want to hide and still be able to use them to build my control? I make the final control by dragging the other items from the toolbar. After I am finished all of my controls are visible in the toolbar and I don't want that. Help?! I am using Visual Studio 2008 Express - C#
-
I've got a usercontrol that uses quite a few other usercontrols putting it together. I only want the "complete" usercontrol to be visible in the toolbar and not the pieces that make it up. How do I hide the parts I want to hide and still be able to use them to build my control? I make the final control by dragging the other items from the toolbar. After I am finished all of my controls are visible in the toolbar and I don't want that. Help?! I am using Visual Studio 2008 Express - C#
I think you can give those controls you want to hide an attribute
[System.ComponentModel.ToolboxItem(false)]