Results 1 to 6 of 6

Thread: ListBox Multi-Colum

  1. #1

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335

    ListBox Multi-Colum

    How do i make a listbox with multiple colums??
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Not really sure, but it might be easier to use a Listview control, instead.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Search this forum for Setting Tabstops in ListBox Control...
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  4. #4

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    i cant use that though it doesnt help me. I want something that i can display from left to right not top to bottum. and is it possible to list something like a file in a list box then in another list box put the files size but on the same line like
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  5. #5
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    That is what Tans in A listbox does it aligns the seconds "column" in the listbox. I'll find an example...
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  6. #6
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Didn't take long...

    Code:
    ' windows messaging
    Private Declare Function SendMessageArray Lib "user32" Alias "SendMessageA" _
       (ByVal hwnd As Long, ByVal wMsg As Long, _
        ByVal wParam As Long, lParam As Any) As Long
    
    Const LB_SETTABSTOPS = &H192                     ' set tabs in listbox
    
    
    Sub SetListBoxTabs()  ' set two listbox tabstops 55 & 300
       Dim TabStop(0 To 1) As Long
       TabStop(0) = 55
       TabStop(1) = 300
      'clear tabs
       Call SendMessageArray(List1.hwnd, LB_SETTABSTOPS, 0&, ByVal 0&)
       ' set tabs
       Call SendMessageArray(List1.hwnd, LB_SETTABSTOPS, 2, TabStop(0))
       DoEvents
       List1.Refresh
    End Sub
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

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