How do I add an image to the column header of a ListView?

It should be easy, right? Have a list, add an image, add images to imagelist, assign the image index to the column you want.
But it doesn't work.
The Microsoft article claims this is a known issue in .NET 1.1.
But has it been fixed since?

0


source to share


2 answers


You will still have to use Interop. I suggest you use the example provided in the article.



+1


source


I liked 1) made imagelist1

2) set listviewlarge = imagelist1 and samallImagelist = imagelist1



3) write to the form initilaize area this.Columname0.ImageIndex = 0; this.Columname1.ImageIndex = 1;

his job.

0


source







All Articles