C# Winforms - Change a Listview item's label?

I believe it's just the Text Property of ListViewItem Edit: So just change this line: listView1.Items. Add(imageToLoad, imageList1.Images. Count - 1) to listView1.Items.

Add(System.IO.Path. GetFileName(imageToLoad), imageList1.Images. Count - 1).

I believe it's just the Text Property of ListViewItem. Edit: So just change this line: listView1.Items. Add(imageToLoad, imageList1.Images.

Count - 1); to listView1.Items. Add(System.IO.Path. GetFileName(imageToLoad), imageList1.Images.

Count - 1).

Right, but 'Some Custom Text' will be applied to all the icons that are imported. Im looking for something that makes each describe the image, even if it is just one word. And manually naming each one on import would be a long process, and would need to be done each time the program starts, checking for new images.

I understand how to add text to a icon, as described above by your example, but how would I go about making that text the filename instead. – Rekar Sep 3 '10 at 20:49 I modified the line to display just the filename without the full path for every image you try to load. Is that what you're after?

– Steve Danner Sep 3 '10 at 20:58 Wow, thank you for your help. – Rekar Sep 4 '10 at 0:34.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions