ListView Control Missing

ListView Control Missing

david_sexton
Contributor Contributor
3,896 Views
3 Replies
Message 1 of 4

ListView Control Missing

david_sexton
Contributor
Contributor

We've gotten new workstations and I'm trying to get some of the older VBA routines to work on them.  One of these routines has a ListView object but for some reason the control is missing.  I've got MSCOMCTL.OCX added to the references, but the ListView control won't show up as an option when I go to "Additional Controls".  Any ideas?

 

Thanks

 

Edit: Running 64bit AutoCAD 2015, Windows 7

0 Likes
Accepted solutions (1)
3,897 Views
3 Replies
Replies (3)
Message 2 of 4

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

Generally there are some places to download that OCX, one of them is >>>here<<<.

But I'm not sure if they will work with 64bit. There are some discussions about "how to register them on 64bit systems".

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 3 of 4

norman.yuan
Mentor
Mentor
Accepted solution

MSCOMCTL.OCX (and MSCOMCT2.OCX) is 32-bit COM component and cannot be used with AutoCAD 2014/15 VBA, if the AutoCAD is 64bit. Period.

 

There is basically no 64-bit alternative. the option you have is either use AutoCAD 2013 or earlier, which uses 32-bit VBA in spite of AutoCAD itself could be 64 bit; or use the VBA built-in listbox (you can make it multipe columns) to replace the listview, it is ugly, but could save your VBA code in 64-bit VBA.

 

If your VBA project uses a lot UI controls and they are critical to the app, the lack of 64-bit COM components in 64-VBA environment could just kill yoru VBA project, or make further investment of effort to the VBA code less meaningful, and you may have to consider port the VBA code into .NET API app sooner than later.

Norman Yuan

Drive CAD With Code

EESignature

Message 4 of 4

david_sexton
Contributor
Contributor

Thanks for the replies.  We had 64-bit 2013 running previously, so I thought it should work - the joys of upgrading!  I'm going to put in a ListBox as suggested until I can rewrite it in .NET.

 

Thanks again!

0 Likes