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.
# 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.
# 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.
# 4 Re: listview problem
so, how do i fix it then?
is my code wrong for the one listview and not the other?
# 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