|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Launching AppI 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 On Thu, 20 Oct 2005 14:41:12 -0600, "bob" <bo***@bob.com> wrote: Perhaps a bit more information ?>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? Is the separate App your own or is it from a 3rd party ? 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 ? > > On Fri, 21 Oct 2005 08:32:07 -0600, "bob" <bo***@bob.com> wrote: Reluctantly: Look at SendMessage>Sorry, the app is going to be my own. It is going to be written in C# due >to the functionality I need (reflection). 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 > On Fri, 21 Oct 2005 13:07:02 -0400, "Someone" <nob***@cox.net> wrote: Another method is to set up a Timer and simply use it as a Message>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. 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 |
|||||||||||||||||||||||