Ejemplo n.º 1
0
 private void SetOwnerItem(Control control)
 {
     if (control == null)
     {
         return;
     }
     if (control is CustomToolStrip)
     {
         CustomToolStrip toolStrip = control as CustomToolStrip;
         ownerToolStrip = toolStrip;
         ownerToolStrip.childToolStrip = this;
         OwnerItem = toolStrip.Items[0];
         return;
     }
     if (control.Parent != null)
     {
         SetOwnerItem(control.Parent);
     }
 }