.netwinformstoolstripcombobox

ToolStripComboBox -- autosize to items


I have a ToolStrip with a ToolStripComboBox control on it, and I would like it to autosize to fit the widest item in the drop down list. How can I accomplish that? The "Autosize" property is set to "true", but it doesn't seem to be making any difference. I've been banging my head over this for a while. Is it even possible?


Solution

  • According to this msdn article AutoSize Property Overview only some of the controls support the AutoSize property. ComboBox has no AutoSize support.