Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i create Icon In Each Row Of Listview Control

Status
Not open for further replies.

MusaItopa

IS-IT--Management
Feb 8, 2006
18
Does any one know how i can create an Icon In Each Row Of Listview Control.

I want to list out countries in a listview object and use of the columns to display the corresponding flag. I need serious help here

 
Add imagelist control and flags to it. Set view type of listview and assign imagelist to it. Sample code (last number in the 'Add' method corresponds to the number of image in the assigned imagelist. Icons in the imagelist have to be added manually)):
Code:
ListView1.View = lvwList
Set ListView1.SmallIcons = ImageList1
ListView1.ListItems.Add , , "country 1", , 1
ListView1.ListItems.Add , , "country 2", , 2
' etc.

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top