Results 1 to 3 of 3

Thread: drawlines or display lines in listbox?

  1. #1

    Thread Starter
    Fanatic Member Navarone's Avatar
    Join Date
    Jun 2003
    Location
    Akron, Ohio USA
    Posts
    740

    drawlines or display lines in listbox?

    Is there away to draw a line or display lines in a listbox like lines found on standard notebook or flex grid?
    He who never made a mistake never made a discovery?

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: drawlines or display lines in listbox?

    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?

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: drawlines or display lines in listbox?

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width