Skip to content

How do I align text in a ListBox?

Soeren Overballe Nielsen

Asked May 13, 2006, 6:21 AM EDT1 answer
Share
LinkedInX
When I add items to my listbox it looks something like this:

John                 10                 B
Anna                  11                  C
Mark                9                  A

How do I align it to make it look nice? I use Microsoft Sans Serif.

1 Answer

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

  • +1
    this.listBox1.Items.AddRange(new object[] { "John\t10\tB", "Anna\t11\tC", "Mark\t9\tA"}); work just fine but if you don't like it you can use a ListView
    +1