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

TreeView Control Replacement

Status
Not open for further replies.

skoutso

Technical User
Dec 10, 2002
9
GR
Hi there,

I'm trying to ugrade an old VB6 project that contains a treeview control in a form.

VB6 will does not however recognize the control as it is now obsolete.

How can I replace the old treeview control by an newer one?
Where can I find a newer treeview control?

Thanks
 
Assuming you have VB6 installed the TreeView ships with it, tick "Microsoft Windows Common Controls 6.0 SP6" in your Components toolbox and the TreeView is in there.

If not, try installing VBSP6 and that might restore the required file (MSCOMCTL.OCX).

- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
 
Thanks for your response Andy,

The problem however is that when I tick the "MWCC 6 SP6", I get the message "File Format No Longer Supported". That's why I'm looking for something newer or a workaround to use the old MSCOMCTL.OCX.

 
Hmm. I think you must have an underlying problem there then because that OCX is certainly still supported and works fine with VB6. Do you get the same message with any other OCXs in the toolbox?

Also, check the file properties of mscomctl.ocx, they should be:
File version: 6.1.97.82
Digital signature: 10 March 2004 00:45:25
File size: 1,081,616 bytes

- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
 
Dear Andy,

I have exactly the same file (v:6.1.97.82, ds:March 3, 2004).

But I've managed to overcome the problem in a kind of mysterious way:
I renamed the mscomctl.oca file (e.g. mscomctl_old.oca) that accompanies the ocx file. VB6 opened the project with no errors, and most important, the code and forms containing the ActiveX objects of ocx, are fully functional.

Any ideas?
Thanks a lot for your help.
 
Ours is not to question why,
Ours is to delete and retry.

- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top