Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir


I am using list view in my project and it run successfully but when i run my project in other system it gives me run time error 13
the code where it shows error is
Dim lst As ListItem
Set lst = ListView1.ListItems.Add(, , "hello")
and the another thing if i watch the properties of list view it does not show the checkbox property which i have used in my project
Posted

1 solution

This looks like a problem with the reference to the control - you may have multiple versions of the DLL, or the "other" system may have an older version

Have a look at your project references and look for Windows Common Controls

- If you have two references then decide which one to use and remove the other
- if there is a problem with the DLL there may be a "can't load" message - I don't think you will see this on this occasion though.
- Try removing the reference and re-adding it
- Check that the DLL (MSComCtl.dll) I think is correctly registered on the "other system"

NB - if registering anything for VB6 on Windows7 or later make sure you use C:\Windows\SysWOW64\Regsvr32.exe and NOT C:\Windows\System32\Regsvr32.exe

Microsoft provide a free roll-up package of the runtime components[^] for VB6 if you need to get the latest versions (recommended).

Finally - please consider upgrading to VB.NET - the Express Version [^] is free
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900