Ask the Expert

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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: