-
ImageList control
i have a form with a ListView and an ImageList control. in the
Load event of the form i have the following code:
Code:
Private Sub Form_Load()
With ListView1.ListItems
.Add 1, "David", "David", ImageList1.ListImages(1)
.Add 2, "Brad", "Brad", ImageList1.ListImages(2)
.Add 3, "Jesus", "Jesus", ImageList1.ListImages(3)
End With
End Sub
when i run the project it gives me the following error:
Code:
"Run-time error '35613':
ImageList must be initialized before it can be used".
-
never mind the above.
how do i handle a click event on a certain item in the list?