I have two DropDownButtons (ToolStripDropDownItem) – btn01 and btn02
I would like btn02 to be a sorted list of the items of btn01.
I’ve currently got.
List<string> list = new List(btn01.DropDownItems); // I want to create a list
list.Sort();
btn02.DropDownItems = list; // sorted list should be btn02 items.
First and third line have syntax errors.
Something like this would work.
It’s not the prettiest code, and can be reduced down a number of lines, but I wanted to make sure it was clear.