Home All Groups Group Topic Archive Search About
Author
20 Oct 2005 8:41 PM
bob
I have a VB6 app that will need to luanch a seperate app that will need some
user interaction.  I want the app to behave like a dialog, forcing the user
to interact with it before going to back to the main app.  How can I do
this?

Thanks

Author
21 Oct 2005 8:06 AM
J French
On Thu, 20 Oct 2005 14:41:12 -0600, "bob" <bo***@bob.com> wrote:

>I have a VB6 app that will need to luanch a seperate app that will need some
>user interaction.  I want the app to behave like a dialog, forcing the user
>to interact with it before going to back to the main app.  How can I do
>this?

Perhaps a bit more information ?

Is the separate App your own or is it from a 3rd party ?
Author
21 Oct 2005 2:32 PM
bob
Sorry, the app is going to be my own.  It is going to be written in C# due
to the functionality I need (reflection).

Thanks

Show quoteHide quote
"J French" <erew***@nowhere.uk> wrote in message
news:4358a149.162516352@news.btopenworld.com...
> On Thu, 20 Oct 2005 14:41:12 -0600, "bob" <bo***@bob.com> wrote:
>
>>I have a VB6 app that will need to luanch a seperate app that will need
>>some
>>user interaction.  I want the app to behave like a dialog, forcing the
>>user
>>to interact with it before going to back to the main app.  How can I do
>>this?
>
> Perhaps a bit more information ?
>
> Is the separate App your own or is it from a 3rd party ?
>
>
Author
21 Oct 2005 4:44 PM
J French
On Fri, 21 Oct 2005 08:32:07 -0600, "bob" <bo***@bob.com> wrote:

>Sorry, the app is going to be my own.  It is going to be written in C# due
>to the functionality I need (reflection).

Reluctantly: Look at SendMessage
Author
21 Oct 2005 5:07 PM
Someone
How To Use a 32-Bit Application to Determine When a Shelled Process Ends
http://support.microsoft.com/default.aspx?scid=kb;en-us;129796

You don't have to use INFINITE when waiting for WaitForSingleObject to
return as the article shows. You can put it in a Timer and test it with a
value of 0 so it returns immediately if you want to do other things.

You could use SetParent API function, but I have never used it this way and
set "Me.Enabled = False", this simulates that your form as a parent to a
modal form. Make sure that you set it back to True and undo what SetParent
did if the application hasn't finished yet.


Show quoteHide quote
"bob" <bo***@bob.com> wrote in message
news:OatgKdb1FHA.2004@TK2MSFTNGP10.phx.gbl...
>I have a VB6 app that will need to luanch a seperate app that will need
>some user interaction.  I want the app to behave like a dialog, forcing the
>user to interact with it before going to back to the main app.  How can I
>do this?
>
> Thanks
>
Author
22 Oct 2005 7:47 AM
J French
On Fri, 21 Oct 2005 13:07:02 -0400, "Someone" <nob***@cox.net> wrote:

>How To Use a 32-Bit Application to Determine When a Shelled Process Ends
>http://support.microsoft.com/default.aspx?scid=kb;en-us;129796
>
>You don't have to use INFINITE when waiting for WaitForSingleObject to
>return as the article shows. You can put it in a Timer and test it with a
>value of 0 so it returns immediately if you want to do other things.
>
>You could use SetParent API function, but I have never used it this way and
>set "Me.Enabled = False", this simulates that your form as a parent to a
>modal form. Make sure that you set it back to True and undo what SetParent
>did if the application hasn't finished yet.

Another method is to set up a Timer and simply use it as a Message
Pump (nothing in the On_Timer )

Timer1.Interval = 500
Timer1.Enabled = True
While SomeCondition
       WaitMessage
       DoEvents
       DoSomeTest
Wend

It makes the code a little easier to follow
BTW the Timer pumps a message so that in this case WaitMessage returns
at least every 500 ms