|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Learn four approaches for automating Excel logic, along with advantages and disadvantages of each. Read all about it in the free whitepaper: “Tapping into Excel Logic from Java: Four Server-Based Alternatives” Download Now! |
|
#1
|
|||
|
|||
|
I'm trying to colour individual rows in a listbox in vb
There is only one column, and 27 rows. Can anybody help? Private Sub checkbox_Click() Dim I As Long For I = 0 To list1.ListCount - 1 If checkbox.Value = 0 Then tried both of these list1.Column(0, [I]).ForeColor = RGB(0, 0, 0) list1.ItemsSelected.Item [I].ForeColor = RGB(0, 0, 0) I can't access the individual row of the list Else list1.ForeColor = RGB(255, 255, 255) list1.BackColor = RGB(0, 0, 0) End If Next I End Sub |
|
#2
|
||||
|
||||
|
I would suggest you use the msflexgrid control instead of a list box. It is probably more of what you are looking for.
|
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > vb help required |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|