i have a form with a ListView and an ImageList control. in the
Load event of the form i have the following code:
when i run the project it gives me the following error: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
Code:"Run-time error '35613': ImageList must be initialized before it can be used".




Reply With Quote