|
-
May 6th, 2000, 11:20 AM
#1
Thread Starter
New Member
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!
-
May 7th, 2000, 02:06 AM
#2
Junior Member
I think the best way is to create your own listbox.
-
May 7th, 2000, 05:22 PM
#3
Frenzied Member
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
-
Jul 3rd, 2000, 02:17 AM
#4
Hyperactive Member
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
-
Jul 4th, 2000, 09:03 AM
#5
Frenzied Member
Dear michelle
You are so polite! 
The listview control is in Microsoft Windows Common Controls
-
Jul 4th, 2000, 12:50 PM
#6
Monday Morning Lunatic
I think she must be the first person ever on this forum to be polite!
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
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
|