can you tell me whats that error
Runtime Error '35613' Imagelist must initialized before it can be
Printable View
can you tell me whats that error
Runtime Error '35613' Imagelist must initialized before it can be
You need to assign the image list to your listview. Right-click on your listview and select properties, click on the Image Lists tab and fill in the missing info.
that seems to do no change
Replace all your code with this code. Then set the custom property of the listview's Normal Imagelist to your imagelist. And thats it.
You didnt assign an imagelist to the listview and you were setting the large icon property and not the small icon property.
VB Code:
Option Explicit Private Sub Form_Load() With ListView1 .OLEDragMode = 1 .View = lvwSmallIcon .SmallIcons = ImageList1 End With ListView1.ListItems.Add , , "TEST1", , 2 ListView1.ListItems.Add , , "TEST2", , 1 ListView1.ListItems.Add , , "TEST3", , 2 ListView1.ListItems.Add , , "TEST4", , 1 ListView1.ListItems.Add , , "TEST4", , 2 ListView1.ListItems.Add , , "TEST4", , 1 ListView1.ListItems.Add , , "TEST4", , 2 End Sub
oh i see so i using the wrong section to post my picture in the code
not
, 1
, , 1
such a stupid misstype of me, how stupid :lol: :lol: :lol: