Is there away to draw a line or display lines in a listbox like lines found on standard notebook or flex grid?
Printable View
Is there away to draw a line or display lines in a listbox like lines found on standard notebook or flex grid?
You could use an underlined font, but I don't know of any other way to do it.
Maybe you could use a flexgrid with only one column?
It is possible to get the DC of a ListBox and draw lines on it, but you need to constantly redraw these when a selection is changed or when the user scrolls the list, which will cause flickering. Another option is to use a user-drawn listbox (there is a good one at VBAccelerator). But the easiest solution would be (as dglienna suggestion) to use another control, like a ListView or one of the Grid controls.