|
-
May 16th, 2013, 04:15 AM
#1
Re: Lining up text in a listbox
ListBoxes are not intended to be used for data with columns. That's what the ListView and DataGridView are for. It should be no surprise that it is difficult and maybe impossible to make a ListBox do something it was never intended to do. If you use a fixed-width font then it will work if you do as I have shown in my CodeBank thread, as long as you make each "column" wide enough to accommodate the data. If you don't use a fixed-width font then, really, you deserve what you get because that's not what the ListBox is for. Avoiding the problem is good: i.e. use a control that was built to display data in the way you want it displayed and then there is no problem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|