VB6错误,变量未定义,与AeroSuite组件相关。

huangapple go评论67阅读模式
英文:

VB6 Error Variable Not Defined Related to AeroSuite Component

问题

我有一个VB6项目,是从另一台电脑复制过来的。

我已经安装并检查了项目所需的引用和组件。但是有一个错误我解决不了,与Aero有关。它说AeroTab1变量未定义:

VB6错误,变量未定义,与AeroSuite组件相关。

我已经将AeroSuite.oca从另一台电脑复制到与AeroSuite.ocx相同的目录中(windows/System32)。

英文:

I have a VB6 project that I copy from another computer.

I have installed and checked the Reference and Components that the project needed. But there is an error that I can't solve about Aero. It says that AeroTab1 variable is not defined:

VB6错误,变量未定义,与AeroSuite组件相关。

I already put the AeroSuite.oca from another computer in the same directory as the AeroSuite.ocx (windows/System32).

答案1

得分: 3

那个错误提示表明在“MainForm”上没有定义“AeroTab1”控件。在设计模式下查看表单,看看是否缺少控件。如果存在,名称可能不是“AeroTab1”。

当你首次迁移项目时,如果在没有注册AeroSuite的情况下打开它,你可能会收到关于缺少组件的警告。在这种情况下,Visual Basic通常会用一个PictureBox替换控件。但它仍然会被命名为AeroTab1,你会收到关于找不到属性的错误。也许在安装缺少的组件后,PictureBox被移除了。

你应该能够简单地在“MainForm”上创建一个新的AeroTab控件,将其命名为“AeroTab1”,然后解决这个问题。

英文:

That error is indicating that there is no AeroTab1 control defined on MainForm. Take a look at the form in Design mode and see if it is missing a control. If it exists, the name is probably not AeroTab1.

When you first moved the project over, if you opened it without having AeroSuite registered, you would've been warned about the missing components. In that scenario, Visual Basic usually replaces the control with a PictureBox. It would still be named AeroTab1 though and you would get errors about properties not being found. Perhaps the PictureBox was removed after installing the missing components.

You should be able to simply create a new AeroTab control on MainForm, name it AeroTab1 and move past this problem.

huangapple
  • 本文由 发表于 2023年6月5日 18:02:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/76405316.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定