Article ID: 183518
Article Last Modified on 5/13/2003
Option Explicit
Private Declare Function SendMessage Lib "User32" _
Alias "SendMessageA" _
(ByVal hWnd As Long, _
ByVal wMsg As Long, _
ByVal wParam As Long, _
lParam As Any) As Long
Private Const LB_SETTABSTOPS = &H192
Private Sub Command1_Click()
Dim ListBoxTabs(2) As Long
Dim result As Long
'Set the tab stop points.
ListBoxTabs(1) = 75
ListBoxTabs(2) = 200
'Send LB_SETTABSTOPS message to ListBox.
result = SendMessage(List1.hWnd, LB_SETTABSTOPS, _
UBound(ListBoxTabs) + 1, _
ListBoxTabs(1))
'Refresh the ListBox control.
List1.Refresh
End Sub
Private Sub Form_Load()
'Add a few items to the ListBox.
List1.AddItem "January Sales" & vbTab & _
"February Sales" & vbTab & _
"March Sales"
List1.AddItem "50" & vbTab & _
"500" & vbTab & _
"5000"
End Sub
Additional query words: list box check box kbVBp500 kbVBp600 kbControl kbWin32SDK kbAPI kbVBp kbdsd kbDSupport
Keywords: kbprb kbgrpdsvb KB183518