Welcome! and rules
Joel on Software
Inheriting from ToolBar
I have created a class that inherits from System.Windows.Forms.ToolBar. In that class, I add buttons to the toolbar and I handle events. Those buttons are declared public (Public tlbOpen As ToolBarButton) so they can be accessed easily from the caller.
Take a look at the DesignerSerializationVisibilityAttribute class.
I played with this. I put all my buttons private, and put a public property for each button. If I set DesignerSerializationVisibility to Visible, wich is the default, it doesn't generate the code. If I set it to content, it will set the properties of the button and add it to the toolbar again!
Fog Creek Home