I’d like to add a window to my application. Is it possible to “extend” an old vb5 project using C#?
Is it easy to do and maintain and is it a good practice ? If not, what are the alternatives?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you are trying to do is hard as you need to bridge the two worlds.
Both VB5 and C# can create and consume COM object you can use this to call VB5 code from .net or .net code from VB5.
You can also create and use Active X controls in .net, so you can mix VB5 and C# in the same form if you must.
Another option is to have two separate applications that talk to the same database and used COM (or SendMessage) to open forms in each other.
You need a deep understand of .net to get COM working well, however you are not likely to have that understanding until you have spent some time working in .NET.
There are also tools on the market that claim to convert VB5 code into VB.NET, however I have not tired any of them.