2

i want to add a new toolstripmenuitem, but at the first/beginning of menustrip

enter image description here

item "a" named from visual design and item "1" named from code (as new toolstripmenuitem)

how to put item "1" at the beginning / first position of menustrip ?

thanks :) (sorry for my english :( )

Community
  • 1
  • 1
walk.this_way
  • 169
  • 1
  • 2
  • 11

1 Answers1

1

When you need to Add an item at position you need to use Insert as in

ts.Items.Insert (0, item)

And please, don't call everything "item" and "subitem".

T.S.
  • 18,195
  • 11
  • 58
  • 78