Unequal width columns in CheckedListBox
Posted on 2014-02-26
In VB 2008, I'm creating a CheckedListBox to display several rows from a DataTable so that the user can select one or several. For each row, I want to display three items of information. The first, the name, is by far the longest; the other two are a date and a dollar amount.
I have set
clb.UseTabStops = False
clb.UseCustomTabOffsets = True
and then created the items for clb putting a vbTab between each item of the row. However, VB is automatically sorting the tabs in numerical order, so the first tab offset ends up being 100, the second 200, and I don't have enough space for the name to display.
Any suggestions for how to set up the display so the first column is wider than the second? I'm open to using a different control that would allow me to select multiple rows and display three items per row.