Results 1 to 3 of 3

Thread: ListView problem

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613

    ListView problem

    I got a Listview, an Imagelist.

    How can I set the icon in the ImageList to the first column in the Listview at run time?

    Thanks.

  2. #2
    Lively Member
    Join Date
    Apr 2002
    Location
    India
    Posts
    105
    To display icons in listview do the following:-

    ListView1.View = lvwIcon
    Set ListView1.Icons = ImageList1

    I have tried this for icon view only, i think it doesn't work for report view.
    Shahab Ahmed

  3. #3
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Talking Simon sez....GET STUFFED!

    VB Code:
    1. With ListView1
    2.     Set .ColumnHeaderIcons = ImageList1
    3.     .View = lvwReport
    4.     .ColumnHeaders.Add , , "1st Col", 2000, , 1
    5.     .ListItems.Add , , "Woof"
    6.     .ListItems.Add , , "Badger"
    7. End With
    You mean like that???

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