By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,985 Members | 1,694 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,985 IT Pros & Developers. It's quick & easy.

Strange string formatting

P: n/a
I've seen some strange string formatting behavior on several XP and 2000
machines. I can get the same results with Graphics.DrawString, but the
easiest way to see it is to put a label on a VB or C# form, leave the
label's font setting at the default, set AutoSize to true, and set the
text property to a long string of narrow characters, like:

llllllllllllllllllllllllllllllllllllllll

The first couple dozen or so 'l's look okay, but the rest have extra
space between them, and the results from MeasureString (as seen in the
width of the label frame) are too large. Using VS7.1 and .NET 1.1.
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.