donaldc104
Freshman
- Joined
- Jan 4, 2003
- Messages
- 32
Is it possible to right-justify the items in a ListBox?
The Label has a property called TextAlign. But I can't find any alignment for the ListBox. I only need Left-or-Right alignment.
I tried to use a space-padded Format like this:
but could not get it to work (space-padding refused to appear).
Does anybody know a trick that I could use?
- donaldc104
The Label has a property called TextAlign. But I can't find any alignment for the ListBox. I only need Left-or-Right alignment.
I tried to use a space-padded Format like this:
Visual Basic:
lstList1.Items.Add(Format(dNumber, "0,-10:C "))
Does anybody know a trick that I could use?
- donaldc104