Fixing character width in a text box?

10-17-2006, 02:09 PM
Is there any way I can get the formatting of the text in the text box to be that of the text in the file?


10-17-2006, 03:10 PM
Your Notepad font is set to a non-proportional font. This means that the lowercase letter 'i' takes up the same width as an upper case 'W'

If you set your textbox to use the same font as your notepad is using then things should align.

If you do not like the looks of the notepad font then you could always import the file data into a DataDridView instead of a textbox.


10-17-2006, 03:47 PM
I set the font to Courier New. I learned something new. Thanks!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum