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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListView : Insert an Image in second column in details mode ?

Status
Not open for further replies.

yfbf

Programmer
Oct 2, 2004
24
BE
I would like to show in my listview in DETAILS MODE :

column :

1/ 2/ 3/ 4/
Checkbox Picture (jpg or bmp) Description Metadatas

How can I do ?

best regards
 
Putting images in a listview in a second or third column is more effort than it's worth. I would suggest creating your own custom control that behaves like a listview and displays the images how you would like them.

Create your customListViewItem (Usercontrol with Images)
Create your customListView (Panel)

When you want to add your customListViewItem to the customListView, use a method like:

public void AddItem(customListViewItem item)
{
item.Dock = DockStyle.Top;
this.Controls.Add(item);
}

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top