Search code examples
vb.netlabelellipsisstatusstripcss

AutoEllipsis in StatusStrip Label?


I'm coding a Windows Forms App that has a StatusStrip that displays status informations to the user, and hints when the mouse is over relevant things. However, when the program is on it's minimal window size, the text sometimes is bigger than the whole StatusStrip, and the label simply dissapears. There must be a workaround to this, ideally I'd like it to auto ellipsis when the text is bigger than the window allows. But how?

Thanks in advance =)


Solution

  • Set TextAlign = MiddleLeft

    Set Spring = True

    You won't get ellipses this way, but it won't disappear either.

    If you want ellipses you may have to actually measure the width, and adjust your text accordingly. Not an easy task.