When I execute my OCX in another environment, I have an error saying "Object required". It gives a Run-time error '424'.
In my VB code, the line causing the error, is really simple. I just try to assign a value to a property.
Basically, my OCX is showing a form to display a progress bar. In that form, I have a property called lnCurrent. To create the object, I use this syntax:
Set loProgressBar = CreateObject("Thermo")
loProgressBar.Show
Later in the code, I use this code to assign a value to lnCurrent property:
loProgressBar.lnCurrent = 4
As soon as I try to assign a value to this property, it makes the OCX crashes in another environment.