# Text formatting inside textbox

Im reading an indexed file with visual cobol and displaying its data in a multiline textbox.

The problem is that every field has a different size (not in the pic definition, but the "letters size"), and that completly disrupts the text formatting.

See image below:

What's the best solution for this problem?

Parents

Your problem is that you're using a "proportional" font, where, for example, the letter W is four times wider than the letter I or a space.

Try a monospace font like Courier or Lucida Console.  Then every character, including spaces, will be the same width.  Then your columns should line up very nicely.