danisimo

Hi

I'm trying to view bitmap images (128x128) onto a window form in a sequential manner. From some tutorials I learned that ListView is better than ListBox simply because you can work easily using ListView and ImageList. I have looked at some tutorial on the msdn but i have no clue where to start. Can someone show me please what i must first do
thanks


Re: Windows Forms Sample Applications display sequential images on a window form

TilakGopi

Hi,

U might have googled,

here is one link ,having the sample of list view with images:

http://www.codeproject.com/cs/miscctrl/OAKListView.asp

Hope this helps u.

Thanx,

Ch.T.Gopi Kumar.






Re: Windows Forms Sample Applications display sequential images on a window form

danisimo

I appreciate your help. I forgot to mention that I'm using C++ for window forms and that I want them in a horizontal view where I have a scrollbar to scroll these images. Look at the following link where I provided a image of how I want them.

http://img230.imageshack.us/img230/1483/untitledsk1.jpg




Re: Windows Forms Sample Applications display sequential images on a window form

danisimo

I got it working finally!! but i would like to be able to click on a listview item (image) and assing an event handler to it. Does anyone know how i can do that.




Re: Windows Forms Sample Applications display sequential images on a window form

TilakGopi

Hi,

Handle any one of following events:

listView1_SelectedIndexChanged

listView1_MouseClick

listView1_ItemSelectionChanged

Thanks & Best Regards,

Ch.T.Gopi Kumar.






Re: Windows Forms Sample Applications display sequential images on a window form

danisimo

Thanks for your help. I understand what you told me to do but how would i check if a specific item is clicked on. Like is there a method that allows me to see which item was clicked on. for example something like isSelected() or isclicked().