Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Calling a vb.net program from vb6


Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2003, 07:34 AM
cinners cinners is offline
Newcomer
 
Join Date: Jul 2003
Location: Pennsylvania
Posts: 1
Question Calling a vb.net program from vb6


I am working with a system (very large) that was develpoed in vb6 over a three year period.
We have since installed vb.net.
I have develpoed a project in vb.net that the user wants to call from an existing vb6 program using a button In the click event of the button on the form designed in vb6 How do I load my new program and get the two to work together? and the how do I unload my vb.net program and return to vb6?

Thanks in advance ant help would be very helpfull

Please email me at cinners@state.pa.us
Reply With Quote
  #2  
Old 07-29-2003, 07:48 AM
samr samr is offline
Senior Contributor
 
Join Date: Jul 2003
Location: London, England
Posts: 993
Default

If the programs can be independent, then you could use shell to run the VB6 program. There may be something that you could do with the return value from the shell to make the .NET program pause until the other program has finished.

Another suggestion would be to make the VB6 program into a control and to compile it to an OCX. I'd have thaught that once compiled, the control will have no difficulty communicating with .NET
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling forms from another program bpowers1954 General 2 08-06-2002 08:47 AM
calling program soonyu General 7 05-07-2002 12:33 PM
Calling a program while another is running? SixEastMain General 1 05-03-2002 01:23 AM
error calling program from DOS grimes General 7 04-08-2002 03:12 PM
Calling a different stand alone program from VB grizlE General 2 01-14-2002 11:22 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->