|
-
Oct 27th, 2001, 11:42 AM
#1
Thread Starter
Frenzied Member
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/
-
Oct 27th, 2001, 12:08 PM
#2
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
-
Oct 27th, 2001, 12:15 PM
#3
PowerPoster
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....
-
Oct 27th, 2001, 12:21 PM
#4
Thread Starter
Frenzied Member
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/
-
Oct 27th, 2001, 12:28 PM
#5
PowerPoster
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....
-
Oct 27th, 2001, 12:30 PM
#6
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|