Results 1 to 2 of 2

Thread: ImageList control

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    Hod Hasharon, Israel
    Posts
    109

    Arrow 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".
    "Don't imitate, Innovate!"

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    Hod Hasharon, Israel
    Posts
    109
    never mind the above.
    how do i handle a click event on a certain item in the list?
    "Don't imitate, Innovate!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width