-
multi-programs in VB6
Hello, I need a little help in a VB6 project of my own:
I'd like to know how to give hand back to a VB6 program "A" after it had given its hand to another VB6 program "B".
I use a "shell" instruction to launch program "B" from program "A" is there another instruction more usefull in this case or in general ?
Thanks in advance for your answers.
-
The Shell function operates asynchronously so when program "A" launches program "B", program "A" will continue on to the next instruction w/o waiting for program "B" to finish.
If this is what you need to happen then the Shell function should be fine for your implementation.
Paul
~~~~
Microsoft MVP (Visual Basic)
-
No, it's not really what I want.
To be more precise, I want to make program "A" a 'main-program' for three programs "B", "C" and "D"
In other words program "A" would be a 'Choose what sub-program you want to launch' program.
I'm not sure it will be clearer helping you to help me !
-
So how do you expect the main program and sub programs to interract with each other. I'm a little unclear as to what you need to happen.
Paul
~~~~
Microsoft MVP (Visual Basic)
-
What I need to happen...
- I launch my program "A" (a simple form with 3 buttons, one for each 'sub-program' or something like that)
- I click on one of the 3 buttons
- It launches the 'sub-program' associated to it
- I execute the 'sub-program' till its end
- And at the end it gives back the hand to the 'main-program' "A" which was like "in pause" during this time
I hope it can helps a little more !
-
You should be able to find an example in the following:
http://www.google.com/search?hl=en&r...+basic&spell=1
Paul
~~~~
Microsoft MVP (Visual Basic)
-
No need to keep the simple form "paused" - all you need to do is have it check for any of the 3 programs running and not do anything if it finds any. Effectively doing what you want to do, which, if I understand correctly, only allow one of the 3 apps to run at any given time.
So, click button A. Form checks for processes A,B,C running, doesn't find any and launches A. Click button B. Form finds process A running, does nothing.
Similar Threads
-
By adastaviz in forum VB Classic
Replies: 6
Last Post: 06-28-2005, 01:42 PM
-
Replies: 246
Last Post: 10-26-2002, 12:30 AM
-
By Andrew Clottey in forum .NET
Replies: 1
Last Post: 09-19-2002, 11:23 AM
-
By Tejpal Mehta in forum VB Classic
Replies: 2
Last Post: 12-11-2001, 03:52 AM
-
By Richard Curzon in forum .NET
Replies: 3
Last Post: 07-21-2001, 02:32 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks