Results 1 to 3 of 3

Thread: Show icon in ReportView of a ListView control

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Posts
    17

    Question

    I'd like to be able to show an icon in one column of the listview control when it's .View property is set to lvwReport i.e Report View.
    If this is possible and anyone knows how to do it, i'd like to know thw solution.

    Thanks

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    1. Create an ImageList containing the icons you require and put names in the "key" field

    2. Go into the properties of the ListView and for ImageLists set this ImageList for both large and small (you can do different lists if you want different sizes)

    3. When adding items to the listview simply use the "key" that matches the icon you want to display

    Code:
    ListView1.ListItems.Add ,"Item Text", "LrgIconKey","SmlIconKey"

  3. #3
    New Member
    Join Date
    Sep 2000
    Posts
    2
    Thanks Gen-X for the help.

    Only i disovered that in the reportview the icon used from the LargeIcon ImageList is not displayed which is what i had been trying all this while. But the one from the smallicon imagelist is displayed.

    So thanks all the same.

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