VB6 Common Controls 5.0 / 6.0 differences?

I've been testing the listview control from Microsoft Windows Common Controls 5.0 (SP2) and Microsoft Windows Common Controls 6.0 (SP6).

I realized that the listview control in SP6 doesn't act normally as normal Explorer listview control does.
This was the test that I've been doing:
* Place 2 listview controls from different versions on a form and set both view to lvwReport and MultiSelect property to True.
* Initialize ColumnHeaders and populate the listview items (3+) in Form_Load event.
* Run the application, select first record of each. (If it's not yet been selected)
* Drag and select the last item in the list.

The result I see is when selecting the SP2 listview items it reacts like Explorer does - selected items will be updated to most recent selections and first item de-selected.
With SP6 listview control, I get last item been selected (this is correct), and the first item remain selected, end up the first and last item been selected.

I am considering of changing all my SP6 listview to SP2 listview, because the SP2 listview is what I am looking for. Would anyone recommend using the older version rather than the newer version? I would also like to know what has been changed within these two versions? If using the older version, will it affect the installation process in client machines?
guest321Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DabasCommented:
Hi guest321,
I would strongly suggest you do NOT downgrade!
Just by going into (Custom) on each control, you will notice the addtions to the SP6 one.
From memory, things like FullRowSelect and GridLines would probably be reason enough.
As to your problem, probably it is possible to overcome. Have you tried checking or unchecking the "Hide Selection" property?

Dabas
0
guest321Author Commented:
Hi Dabas.

I've tried the "Hide Selection" property, but it doesn't work, it will only hide the selected/highlighted items in the listview when lost focus. :/
0
guest321Author Commented:
I am busy downloading Visual Studio Service Pack 6, will this update help?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

DabasCommented:
guest321,
> I am busy downloading Visual Studio Service Pack 6, will this update help?
I hope so! Let me know

Dabas
0
p_sieCommented:
Two things,

If you use a manifest file to give your application a windows XP look, the use the old (SP2) version, cause that one will get the WIndows XP look, the new one does not.
In the SP6 listview, listsubitems have more options.

And there are of course some other differences.
0
jkaiosIT DirectorCommented:
I agree with p_sie.
Version 5.0 (COMCTL32.OCX) is link with COMCTL32.DLL which is the main common controls library and the library for XP style
Version 6.0 (MSCOMCTL.OCX) is not link with Comclt32.dll

It is also true that version 6.0 has more options or features, and the following lists some
of the new features (Properties and Methods) in version 6.0 that are not in version 5.0:

Main ListView Control
-------------------------
AllowColumnReorder
Checkboxes
ColumnHeaderIcons
FlatScrollBar
FullRowSelect
HoverSelection
Picture
PictureAlignment
TextBackground

The ListItems Object
-------------------------
Bold
Checked
ForeColor
ListSubItems
ToopTipText
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
guest321Author Commented:
Thanks for the help guys!

I've decided to combine 2 different versions of controls in my application (hope this won't give me problems in later stage), regarding the listview, I've used some API calls to achieve the same effects as the version 6.0 have.

As for SP6, I haven't install it yet, because I read a few posts stating there are some problems came with SP6, I will need to make sure before I install it.
0
jkaiosIT DirectorCommented:
Thanks for the A grade, guest321.

You really should install the SP6. I've been using it since it was available and haven't encountered any problem at all.
Also, you can use both Common Controls v5.0 and 6.0 together. I've done that too with no problem.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.