Listiew控制运行时错误13 [英] Listiew Control run time error 13
本文介绍了Listiew控制运行时错误13的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的先生
我在项目中使用列表视图并且运行成功但是当我在其他系统中运行我的项目时它给了我运行时错误13
显示错误的代码是
Dim lst作为ListItem
设置lst = ListView1.ListItems.Add (,你好)
和另一件事,如果我观察列表视图的属性,它不显示我在我的项目中使用的复选框属性
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
推荐答案
这看起来像对控件的引用有问题 - 你可能有多个版本的DLL,或者其他系统可能有旧版本
查看您的项目参考并查找Windows公共控件
- 如果你有两个引用,然后决定使用哪一个并删除另一个
- 如果DLL出现问题,可能会出现无法加载的消息 - 我认为你不会看到这个这个场合虽然。
- 尝试删除引用并重新添加它
- 检查我认为DLL(MSComCtl.dll)是否在其他系统上正确注册
NB - 如果在Windows7或更高版本上为VB6注册任何内容,请确保使用C:\ Windows \ SysWOW64 < /b>\Regsvr32.exe
而不是C:\ Windows \ System32 \ Regsvr32.exe
微软免费提供运行时组件的汇总包[ ^ ]如果您需要获取最新版本(推荐),请使用VB6。
最后 - 请考虑升级到VB.NET - 快速版 [ ^ ]是免费的
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 forWindows 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 useC:\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
这篇关于Listiew控制运行时错误13的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文