How to make ToolStrip ComboBox resize when the dialog is resized?
How can I make the ToolSripComboBox automatically resize when the dialog is resized?
Matt
How can I make the ToolSripComboBox automatically resize when the dialog is resized?
Matt
you can handle form's resize event and calculate toolstripCombo Width manualy
this is what I could do
hope this helps
{
int w = toolStrip1.Width;
toolStripComboBox1.Width = WhatEverStillFitsAndIsAcceptableToUser(w);
}
your function to write to determine how to fit the toolstrip controls
into the available toolstrip width. I'd do something like
multiply the original design widths of the resizeable controls by a
percentage, clipping to a low value below which the control becomes
unusable...