How to make a ToolStripComboBox to fill all the space available on a ToolStrip?
Posted
by Ivan
on Stack Overflow
See other posts from Stack Overflow
or by Ivan
Published on 2010-05-04T21:26:40Z
Indexed on
2010/06/17
16:23 UTC
Read the original article
Hit count: 287
A ToolStripComboBox is placed after a ToolStripButton and is folowed by another one, which is right-aligned. How do I best set up the ToolStripComboBox to always adjust its length to fill all the space available between the preceeding and the folowing ToolStripButtons?
In past I used to handle a parent resize event, calculate the new length to set based on neighboring elements coordinates and setting the new size. But now, as I am developing a new application, I wonder if there is no better way.
© Stack Overflow or respective owner