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

OCX Troubles

Status
Not open for further replies.

VBApprentice

Programmer
Oct 4, 2001
14
US
I want to use a control in a project that is a newer version than previously used, it happens to be the listview control. I have replaced the older listview with the new one but get error Run-time error 13: Type Mismatch on code ...listitems.add(... when execute it. The program does not recognize/acknowledge my new listview control. I want to know how to: 1. determine which controls belong to which ocx 2. remove older versions of ocx. I cannot use the new listview because of other components still being used that belong ot the older ocx. This is what I believe anyway.

I would appreciate help in this dilema.

Thanks
 
Off the top of my head, I would try two things.

First, I would unregister the listview control (regsvr32 /u), and then register the new control.

Second, I would insure that the parameter list for that method has not changed between the new versions. Good Luck
------------
Select * from Users where Clue > 0
0 rows returned
 
I'm getting this type of error as well.

ListView.ListItems.Add returns "type mismatch", as does various others such as ListView.ListItems.Count

I unregistered then registered the ocx file (comctl32.ocx) but no luck there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top