clownmachine
unread,Nov 18, 2009, 7:27:12 AM11/18/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
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.