Q

Calling a VB .NET app from an existing VB 6 application

Here out experts address calling a VB .NET app from an existing VB 6 application.

I have an existing VB6 Web application. At this point in time, we do not wish to convert it to .NET. However, we

are in the process of creating some electronic forms and an application to manage them that we would like to write in VB.NET and ASP.NET, and then call from our existing VB6 application. I am assuming this is possible. Can you let me know if it is? Thanks. Yu can surely do that. There are two different things to consider here: starting the application from VB6 and pulling information from it with VB6.

Starting the application is as easy as using a WebBrowser control and point it to the default page on your Web app. Pulling information from it may require that the ASP.NET app delivers information in a VB6-friendly way, such as a text stream.

So, the VB6 app can simply do a request (HTTP GET) for a Web page (say GetFilledForms.aspx) and get the results as a string. The ASP.NET page can perform Response.Write calls to generate the output.

This was first published in February 2004

Dig deeper on VB 6 to VB .NET Migration

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchCloudComputing

SearchSoftwareQuality

SearchSOA

TheServerSide

SearchCloudApplications

Close