i am instantiating my own ToolStripButton and adding it to a contextmenustrip it pops up but the text gets cut off:
string[] layouts = new string[]{"Test 1", "test 2", "test 3"}
List<ToolStripButton> items = new List<ToolStripButton>();
foreach (string layout in layouts)
{
ToolStripButton item = new ToolStripButton(layout, image, LayoutClicked);
item.AutoSize = true;
items.Add(item);
}
layoutMenus.Items.Clear();
layoutMenus.Items.AddRange(items.ToArray());
layoutMenus.Show(Cursor.Position.X, Cursor.Position.Y);
any idea why the text is getting cut off as the autosize property is true?