multi-programs in VB6


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: multi-programs in VB6

  1. #1
    Join Date
    Oct 2006
    Posts
    3

    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.

  2. #2
    Join Date
    Dec 2003
    Posts
    2,750
    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)

  3. #3
    Join Date
    Oct 2006
    Posts
    3
    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 !

  4. #4
    Join Date
    Dec 2003
    Posts
    2,750
    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)

  5. #5
    Join Date
    Oct 2006
    Posts
    3
    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 !

  6. #6
    Join Date
    Dec 2003
    Posts
    2,750
    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)

  7. #7
    Join Date
    Sep 2006
    Posts
    11
    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

  1. How to work with Multi Projects in VB6
    By adastaviz in forum VB Classic
    Replies: 6
    Last Post: 06-28-2005, 02:42 PM
  2. Speaking of strings...
    By Harlow in forum .NET
    Replies: 246
    Last Post: 10-26-2002, 01:30 AM
  3. Intergrating vb6 programs with vb.net programs
    By Andrew Clottey in forum .NET
    Replies: 1
    Last Post: 09-19-2002, 12:23 PM
  4. Wndows XP and Programs written in VB6 SP5
    By Tejpal Mehta in forum VB Classic
    Replies: 2
    Last Post: 12-11-2001, 04:52 AM
  5. Replies: 3
    Last Post: 07-21-2001, 03: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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center