How to solve the Alignment problem ? .txt files in VB textbox?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gee
    New Member
    • Nov 2006
    • 1

    How to solve the Alignment problem ? .txt files in VB textbox?

    Hi everyone,

    I try to a display a .txt file in window's textbox or rich textbox. The
    text file has contents line by line aligned perfectly when using NotePad to
    view and print it. But when I display this .txt file in textbox for printing all alignments are changed. Please help me to solve this problem.

    Thanks in advance.

    G
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Question moved to Visual Basic forum.

    Comment

    • QVeen72
      Recognized Expert Top Contributor
      • Oct 2006
      • 1445

      #3
      Hi,

      Make the TextBox/RichTextBox 's Font = "Courier New".
      this is an Equi-Distance font (eg, i and w occupy same width on the display screen)..
      It makes look, text formatted..


      Regards
      Veena

      Comment

      Working...