MSComctlLib 参考/组件加载时出现“不是加载的控件类”错误

Igo*_*rio 3 vb6 components class

我在打开用VB6开发的项目时遇到问题。某些附加MSComctLib类的控件未加载。

我使用的是 Windows 7。

在错误分析中出现以下消息(没有行数):

Class MSComctlLib.ImageList of control ImageList1 was not a loaded control class.
Class MSComctlLib.Toolbar of control Toolbar1 was not a loaded control class.
MSComctlLib.StatusBar class of control sbStatusBar was not a loaded control class.
Run Code Online (Sandbox Code Playgroud)

然后是很多无效的属性名称,

前任:

The property name _ExtentX in ImageList1 is invalid
The property name Buttons in Toolbar1 is invalid
...
Run Code Online (Sandbox Code Playgroud)

根据微软支持网站http://support.microsoft.com/kb/896559的指导,更新将是解决方案http://www.microsoft.com/en-us/download/details.aspx?id= 10019

我尝试运行可执行文件VisualBasic6-KB896559-v1-ENU ,但打开项目时仍然出现相同的错误。

有人可以告诉我如何解决吗?

提前致谢!

Mar*_*rkL 7

如果您没有在项目中选择通用控件,但这些控件位于窗体上,那么当您尝试加载项目(或将预先存在的窗体添加到不存在的项目中)时,您将收到这些错误没有选择组件)。

在 VB6 菜单上,选择“项目”-“组件”。向下滚动到Microsoft Windows Common Controls 6.0(如果您安装了服务包,那么 SP 级别通常位于库名称的末尾)。选择该组件,单击“确定”。保存项目,然后重新加载项目。

如果这是您问题的根源,您现在应该能够加载那些引用公共控件的表单。