1

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:

enter image description here

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

Étienne Laneville
  • 4,697
  • 5
  • 13
  • 29

1 Answers1

3

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.

Étienne Laneville
  • 4,697
  • 5
  • 13
  • 29
  • 1
    To add to that: in case the missing control was replaced by a picturebox by VB6, it also generates a log file name .log, i.e. _ MainForm.log_ in the same directory as the form itself that lists the missing control type(s). – Hel O'Ween Jun 06 '23 at 07:45