Re: listbox / label issues
1) I don't think its possible, at least I don't think there's a default option for that. If the first word you enter in your label is longer than the label itself then it will display as much of that word as possible But if you enter multiple words, and let's say that the third word exceeds the label's length by a couple characters then it seems that the label will only display the first two word and won't even display the first characters of the third word, even if there would be enough space for this.
Re: listbox / label issues
With number 1, you could consider adding an ellipses ( ... ) at a certain point.
Re: listbox / label issues
Quote:
Originally Posted by
detlion1643
Instead of making back to back posts, I figured I'll just ask two questions in this post:
Wrong option. Keep each thread to a single topic and each topic to a single thread. Your aim is to keep the forum organised and easy to use for everyone. Combining topics in a single thread makes things more confusing for the people posting to a thread and information harder to find for others.
1. The Label control won't do that for you. You can use GDI+ to draw the Text yourself, using one of the overloads of Graphics.DrawString that takes a StringFormat argument. The StringFormat class has a Trimming property that can trim the drawn text in various ways.
2. When you try it for yourself you'll know whether it works or not. Then you only need to ask if it doesn't.