-1

Here is the text assigned to the Text property(pardon the bad quality):

enter image description here

I have copied the text straight from the TextBox on the form, copied it into notepad++ and shown all characters. As you can see everything is well aligned.

Here is how the TextBox looks in the form:

enter image description here

It seems the spacing is now all screwed up. What could be the problem?

Edit: The TextBox is set to true for MultiLine, ReadOnly and WordWrap.

1
  • 2
    Use a fixed-pitch font like Notepad++ does so the letters have the same width as the spaces. Pick, say, Consolas or Courier New. Commented Apr 21, 2015 at 15:38

1 Answer 1

5

Your textbox is using a variable-size font.

Notepad++ is using a fixed-width font.

Make your textbox use Courier New font and you will see it lines up.

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.