G
Guest
Hi all,
I can't seem to find anything on this, so I'm hoping someone here can help.
I have a listbox with two columns. The 'divider' between the two columns is
set to the middle of the listbox. What I would like is that column 1 is only
as wide as the longest string in that column. Column 2 then takes up the
remaining space.
Currently there is a scrollbar for the listbox, but on some forms, I
wouldn't need it if I could get Column 1 to autosize. I don't want to
specify a number as the column width as I don't know how wide I'll need it
ahead of time. It depends on the data I'm pulling from a table and
displaying in the listbox.
Any suggestions are appreciated.
Thanks,
Jay
I can't seem to find anything on this, so I'm hoping someone here can help.
I have a listbox with two columns. The 'divider' between the two columns is
set to the middle of the listbox. What I would like is that column 1 is only
as wide as the longest string in that column. Column 2 then takes up the
remaining space.
Currently there is a scrollbar for the listbox, but on some forms, I
wouldn't need it if I could get Column 1 to autosize. I don't want to
specify a number as the column width as I don't know how wide I'll need it
ahead of time. It depends on the data I'm pulling from a table and
displaying in the listbox.
Any suggestions are appreciated.
Thanks,
Jay