I have created a usercontrol which is basically a button with some nice little features.
One of those features is that it determines the largest font size possible for the text, whilst keeping the text within the confines on the box.
This works fine in the majority of cases, but sometimes it will chop a word in half to fit it in.
So it might appear as..
stackov
erflow
Rather than
stackoverflow
(but in a smaller font)
I thought that there would have been a StringFormatFlag to allow me to specify how word-wrapping is done.
I want word wrapping, but not ‘character’ wrapping.
Thanks
Rich.
You could try using TextRenderer instead: