Skip to content

How can I write text in a TextBox aligned in column ?

A Azorg

Asked Nov 4, 2008, 11:20 AM EST1 answer
Share
LinkedInX
      Hi ,


  How can I write text in a textbox aligned in columns ?
  It must look like this :

             abc    12
             sd        1
             dee    16
Can this be done by cod?
 I try solve this problem by inserting spaces ,but it doesn't work

thanks..

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    +1
    use the \t to create a space and use Environment.NewLine() method to jump to a new line

    string.format(@"abc\t\t\t\t\tdfe\t\......" + Environment.NewLine + ........)
    +1