I want to add text into icon of the listView , how do I write the code ? You see the image file attached, for this example I add the word "special" color green. http://www.mediafire.com/view/ieaac6fe58wo4ye/GianhRieng.jpg

Recommended Answers

All 4 Replies

Perhaps you could have a look here

Your example is very good but still have the disadvantage if the length of the text exceeds the size of the image will be lost some characters and not support Unicode font.

Suggest you study the ListView class type listview c# in Google.
And yes it's a huge beast of a class, but eventually you may find what you want.

There are a few other things that I would like to mention about this topic: Using the ListView :: DrawSubItem event instead of creating an intermediate image file and inserting the text, the material you send me is a good reference, thanks a lot.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.