z-boss
z-boss

Reputation: 17608

How to add an image to ListView column header?

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

Upvotes: 0

Views: 4336

Answers (2)

Ayhan SEBİT
Ayhan SEBİT

Reputation: 11

I did like this 1)made imagelist1

2)set the listviewlarge=imagelist1 & samallImagelist = imagelist1

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

its work.

Upvotes: 1

Claymore
Claymore

Reputation: 319

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

Upvotes: 1

Related Questions