Click here to Skip to main content
15,937,429 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a list box, and I am listing three items on a line, now I want them to line up nicely, so I am using /t to insert a tab stop. The problem is that the default tab stops are too large. Using C#, how can I set custom tab stop sizes?

What I have tried:

I have looked on the net, but maybe I am wording my search improperly.
Updated 15-Sep-22 0:49am

There's a lot to cover so I won't explain it all again, but you can read up on a good summary on it here[^].
Share this answer
If you want to display multiple items per row then I would suggest using either a ListView Class (System.Windows.Forms) | Microsoft Docs[^] or DataGridView Class (System.Windows.Forms) | Microsoft Docs[^].
Share this answer
Maybe you can use an owner drawn listbox, like the one in this CodeProject article:
An editable multi-line listbox for .NET[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900