Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3548
  • Last Modified:

How to add icon to listview column header from imagelist

Hi,
How to add icon to listview column header from imagelist
0
anusdesai
Asked:
anusdesai
  • 2
1 Solution
 
Wayne Taylor (webtubbs)Commented:
Hi anusdesai,

Use something like this....

     ListView1.Columns(2).ImageIndex = 3

...to add the 4th image from the list, to the 3rd column (both collections are 0 based).

Regards,

Wayne
0
 
Bob LearnedCommented:
1) Set the SmallImageList property for the ListView

2) Add a ColumnHeader

3) Select the ImageIndex for the column header to the image from the ImageList.

Bob
0
 
anusdesaiAuthor Commented:
Cheers mate..will try and be back on monday
0
 
anusdesaiAuthor Commented:
Cheers mate..tried and it worked great!!!!!!!!!!!!!!!!!!!!!!!!
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now