ElrondCT
asked on
Unequal width columns in CheckedListBox
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
clb.CustomTabOffsets.Add(2 00)
clb.CustomTabOffsets.Add(1 00)
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.
I have set
clb.UseTabStops = False
clb.UseCustomTabOffsets = True
clb.CustomTabOffsets.Add(2
clb.CustomTabOffsets.Add(1
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER