Hi, the anchor and/or drop is ignored, just do a quick-fix something
like this (i keep most of my controls static and only resize the one
of them) --- oh, if you want to dock your toolstrip to your toolstrip
container, follow the link "Edit Items" at the bottom of the
Properties window and set the parameter in the resulting window.
Setting the parameter in the properties window does not stick.

Private Sub Form1(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Resize

'add all of your static items together (I'd dim this globally though):
'example

dim tool_strip_static_width as short = ToolStripLabel1.Width +
ToolStripSeparator1.Width + ToolStripLabel2.Width ... + Buffer ' you
need some buffer, so the last item wont slip out of view try 20

dim tool_strip_variable_width as short = Me.Width -
tool_strip_static_width

        ToolStripComboBox1.Size = New System.Drawing.Size
(tool_strip_variable_width, 25)

End Sub

I know ... kludge. But hey: it works.

Reply via email to