>I've built a simple text box validation OCX. Its in the DB programming in VB5 in 21 days. After compiling the OCX. I made some changes to the OCX and I attempted to bring the form back. At this time it said "Version 2.9 of c:\vbTest\CUSTOMERVALIDATION.OCX is not registered. The control will be upgraded to version 4.0."
>
>After pressing OK I'm getting the above run-time error. How do I register the OCX or is there something else I'm forgetting to do. I was actually able to get the OCX to work the first time. It was only after making changes that I was unable to bring back the form.
>
>TIA
>
>Dan
If you open your ActiveX control project and your client application project in the same instance of VB (only one copy in memory containing both project at the same time) you should not have any problem.
If you do not open your client application at the same time as your ActiveX control, recompiling it re-register it.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com