listview problem

i have attached a listview demo .zip file.
i have 2 versions of a listview, the one that has the checkboxes will not work with the same code that will work with the non-checkbox version.
could someone please download and look over my code.
thanks
[274 byte] By [rockinron] at [2007-11-18 20:31:20]
# 1 Re: listview problem
This is a little weird - I took a look at your project, and it seems that you have two different listviews - right click & bring up the extended properties box, then click between each listview - you will see that the options change slightly.

I deleted listview1, then copied listview2 back into the form (so I again had 2 listviews). Then I went to project->components and deleted all the common controls except Windows common controls SP6, then deleted listview1, and added it back in from the toolbox. Now it works fine.

I think you somehow managed to get two different listviews into your project.
Twodogs at 2007-11-9 23:07:38 >
# 2 Re: listview problem
yes, i do have 2 versions of listview.

the one i want to work is the one with checkboxes.

the one with checkboxes will not work even when on a form by itself.

they should both work on the same form.
rockinron at 2007-11-9 23:08:39 >
# 3 Re: listview problem
Both listviews can have checkboxes. I think you have one from one set of common controls, and the other from a later set of common controls - that's the only thing I can think of.

I've attached the working project here.
Twodogs at 2007-11-9 23:09:38 >
# 4 Re: listview problem
so, how do i fix it then?

is my code wrong for the one listview and not the other?
rockinron at 2007-11-9 23:10:45 >
# 5 Re: listview problem
I deleted listview1, then copied listview2 back into the form (so I again had 2 listviews). Then I went to project->components and deleted all the common controls except Windows common controls SP6, then deleted listview1, and added it back in from the toolbox. Now it works fine.
Step by step:
Delete Listview1
Copy ListView2
Paste ListView2 back into the form (as listview1)

Go to project->components and delete all the common controls EXCEPT Windows Common Controls SP6.

Delete Listview 1

Add listview1 back in FROM THE TOOLBOX
Twodogs at 2007-11-9 23:11:39 >
# 6 Re: listview problem
ok. thanks for the details
rockinron at 2007-11-9 23:12:39 >