indicate tuncation in ToolTipStatusLabel automatically

Posted by harper on Stack Overflow See other posts from Stack Overflow or by harper
Published on 2010-05-25T08:46:29Z Indexed on 2010/05/25 8:51 UTC
Read the original article Hit count: 229

Filed under:
|
|

I have a .NET application with a StatusStrip holding three ToolTipStatusLabels. The Text of the labels are filled from the application as they show the status. For some circumstances they can hold an empty text.

When I resize the window, the ToolTipStatusLabels are hidden when they cannot be fit in the StatusStrip. I would like to have the text truncated when the label cannot be fit in the StatusStrip. The default behavior to hide the label makes it difficult to distinguish between empty text or hidden label.

To indicate that the text is truncated automatically, this should be indicated with an ellipsis (...). How can this be done?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET