views:

219

answers:

1

I have a Windows Forms ToolStripSplitButton which shows only an icon. I have added some ToolStripMenuItems and I have set their DisplayStyle to ToolStripItemDisplayStyle.Image. The drop down display the area for text (but it's blank), and the image to the left of the empty text area. Is there a way to get rid of the text area so it only displays the icon?

+2  A: 

Set these properties on the DropDown of the ToolStripSplitButton:

toolStripSplitButton1.DropDown.AutoSize = false;
toolStripSplitButton1.DropDown.Width = 27; // Or whatever size your icon width is.
AKoran
Cheers, works perfectly.
Carra