-
Hi,
How do you use API or anything (not even API, any sort of method, i dont care) to change 1 element of a listbox (list1.list(0)=?) to a specific coloe while leaving all the rest of the elements of the listbox black or as they previously were. Thanks, I appreciate it!
-
I think the best way is to create your own listbox.
-
use a listView with one column and report style
Code:
Option Explicit
Private Sub Form_Load()
Dim i As Integer
Dim itmx As ListItem
For i = 1 To 10
Set itmx = ListView1.ListItems.Add(, , "item " & i)
Next
End Sub
Private Sub ListView1_ItemClick(ByVal Item As MSComctlLib.ListItem)
Item.ForeColor = &HFF&'red
End Sub
-
How to get a ListView
Dear Mark Sreeves,
Please can you tell me how to get the ListView object?
In wich control file (.OCX) can I find it
Nice regards,
Michelle
-
Dear michelle
You are so polite! :)
The listview control is in Microsoft Windows Common Controls
-
I think she must be the first person ever on this forum to be polite!