Quote:
Originally Posted by Sl1ver
Hi guys
I've got an app and if its minimized my label will be too long therefore going over my textbox.
Question
How do i make the label so that if the program "shrinks" then the label will shorten followed by three dots
e.g Search Location
And when the app is shrunk maybe look like this
e.g Search Lo...
Any Help would be much appreciated
Since you wouldn't be able to see the label or the text box with the app truly minimized (just a button on the Start bar) I'm going to guess that *your* minimized is a really a smaller version of the form. Kind of like mini-player view of a media playing app only has 'play,pause' instead of the full control set.
Quote:
How do i make the label so that if the program "shrinks" then the label will shorten followed by three dots
On the Resize event check the width of the form and react accordingly.
- if (MyForm.Width < 200)
-
{
-
myLable.text = myVariable.substring(0,20) + "[...]";
-
}
-
else myLable.text = myVariable;
-