Results 1 to 3 of 3

Thread: List View --> images and icon

  1. #1
    Guest
    How can I put images and icons inside a list view ?

  2. #2
    Hyperactive Member Asaf_99's Avatar
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    335
    Code:
    'To put an item in a ListView control:
    'Add:
    'Command Button  - cmdAdd
    'ListView Control - lvwList
    'ImageList Control - ilsImages
    'Now add to ilsImages some pics.
    'Go to the Properties of ivwList and make the ListImage property of it: ilsImages
    'Code:
    Private Sub Command1_Click()
    ivwList.ListItems.Add , , Example, 1
    End Sub
    'Explonation:
    'We add a ListItema and if you don't want it to do anything so just leave the Index and Key blank and go straight to the Text. To give it an Image you give the Index number of the list in ilsImages. Get it?
    Did it help?
    Asaf Sagi

    ICQ: 61917199
    E-Mail: [email protected]

  3. #3
    Hyperactive Member Asaf_99's Avatar
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    335
    By the way:
    1. Sorry that I made this page too long (by width).
    2. Are you from Israel too?
    Asaf Sagi

    ICQ: 61917199
    E-Mail: [email protected]

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