Rousseau Sennett

Rousseau Sennett

  • NA
  • 31
  • 43.9k

Edit Sub Controls of custom user control in designer.

Feb 27 2012 9:46 AM
Hi

I'm working with VS2010 and creating a custom user control. Inside my custom user control I have a ToolStrip.

I made the toolstrip public with

public ToolStrip ToolStrip
{
        get
        {
        return toolStrip1;
        }
        set
        {
        toolStrip1 = value;
        }
}

with the hope that I can edit the Items of the tool strip in design time. I dragged and droped my control to the form and I can change values in the properties
window and it saves in the designer. I can also access and edit the Items of the Toolstrip

It created the toolstripbuttons but it does not save them to my CustomControl>Toolstrip. and when I run the project obviously they don't show the buttons.
I'm sure there is a simple solution but I just can't find it.

Please help.

Thx
Rousseau