Solved

Upgrading VBX to ActiveX (VB3 to VB 5)

Posted on 1998-09-24
2
243 Views
Last Modified: 2010-04-30
I'm trying to upgrade an application from VB3 to VB5.
I have already registered all the OCX that replace the VBX used in the VB3 version, but when I try to load the project (VB3 makefile), the load goes fine but at the end I get a message saying 'Can't perform requested operation.'. I thought the problem was the components list so I tried another solution.
I've created a new project, selected the components I needed and then tried to add one form at a time. But then I found another problem, some controls aren't recognized and are replaced by PictureBox, this hapen's with 3DControls (SSPanel, SSFrame,..), MaskedEDit, etc.... I thought this controls would be automatically updated to their new version(OCX) that is already registered in the components window.
Does anybody know how can I solve this problem, which is the best way to upgrade one project from VB3 to VB5?
0
Comment
Question by:jorgemiranda
2 Comments
 
LVL 3

Accepted Solution

by:
HATCHET earned 100 total points
ID: 1436408
jorgemiranda,

You need to do a few things to make your project work in VB 5 :

1) Start a new project in VB 5
2) Right Click on the Tool Box containing all of the Controls you can use in your project and select "Components..." and find your new .OCX ActiveX Control.  Check it to add it to your project and click OK
3) Create all of your Forms, Modules, etc. all over again and MAKE SURE that the names of all the Forms, Modules, and objects in them such as the TextBoxes, ListBoxes, etc. all have the same names as your project in VB 3
4) Replace the old VBX Controls in your old project with your new ActiveX control in your new one
5) Once you've duplicated all your objects in VB 5, copy the code from your VB 3 project into the appropriate windows of VB 5.  Your code should work fine as long as you've got all the objects across the same as VB 5 is backwards compatable with VB 3 code.
6) Do some double checking and debugging just to make sure the transfer of code went smoothly and correctly and you're good to go!

I know this will take a bit to do, but it's the best way to asure that you've make a good cross-over to VB 5.  If I had to do what you're trying to do, this is what I would do.

Good luck,

HATCHET
0
 

Author Comment

by:jorgemiranda
ID: 1436409
I acomplished to pass the forms to VB5.
I loaded the from and after that created only the controls that weren't automatically updated.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now