Solved

Upgrading VBX to ActiveX (VB3 to VB 5)

Posted on 1998-09-24
2
241 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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…

744 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

16 Experts available now in Live!

Get 1:1 Help Now