Resuming an application after losing focus

  • Thread starter Thread starter Martin Robins
  • Start date Start date
M

Martin Robins

I have an application that uses many forms. Problem is, once the user is a
few forms deep, they can go into the settings/system/memory/running programs
applet and then resume the application on any form that they choose.

The original authors of the program tell me that they are displaying all
forms using form.Show() and that using form.ShowDialog() causes them
problems in the updating of status fields on the form.

I have tried looking into this and even when I use form.ShowDialog(), I can
still get the running programs list to allow me to return to a previous form
although at least the form cannot be used until any further forms shown with
form.ShowDialog() are closed.

Is there any way to (a) force the application to resume at the current form
irrespective of the form selected in the memory applet or (b) prevent forms
from showing in the applet in the first place. Personally, I would prefer
the latter.

Thanks.
 
The "Running Programs" applet simply shows the caption for all top-level
windows. Remove the caption and it won't show in the list.

-Chris
 
I do not see how this will work, I want at least my main form to have a
caption, and if this is the form that the user selects from the applet list,
I still have the same problem.
 
I'm just letting you know how it works, implementation won't necessarily be
simple. Maybe you could change the caption when the app loses/gains focus
or activation. Your app isn't visible when the "Running Programs" applet
is, so it seems there's got to be an algorithm for removing/replacing
captions that will do what you want. Admittedly this is all rather kludgey,
but when you're forced into a specific UI environment, you've gotta make
do....

-Chris
 
Back
Top