Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

truncate ToolStripStatusLabel instead of hiding it

I have a StatusStrip control on a form. This control contains only one child control - it is ToolStripStatusLabel. When the text is too large, then nothing is displayed. I would prefer to display at least something instead of nothing. What should I do with ToolStripStatusLabel to display part of text even if the whole text doesn't fit?

like image 569
Bogdan Verbenets Avatar asked Sep 06 '12 16:09

Bogdan Verbenets


1 Answers

Try setting the Spring property to true:

toolStripStatusLabel1.Spring = true;

or as Hans pointed out, you can set the ToolStripLayoutStyle

statusStrip1.LayoutStyle = ToolStripLayoutStyle.Flow;
like image 105
LarsTech Avatar answered Nov 11 '22 23:11

LarsTech