Im writing an app that when executed, has a UI. The user then can 'hide' the
app and let it continue running doing whatever it does. I try to get the
app's focus again by executing it again. Code is .net2/c#. Currently, I use
application.hide to hide the app, but i cannot figure out how to regains the
apps focus.

Any ideas?

Richard

RE: 'Hiding' an application by Winston

Winston
Sun Jan 15 19:40:03 CST 2006

Hi Rich,

Have you tried creating a event handler in your application that can react
to a external event like a key press. You could then show your application
again by doing calling the this.Show() with the application.

Regards,

Winston
www.Augen.co.nz

"RIch" wrote:

> Im writing an app that when executed, has a UI. The user then can 'hide' the
> app and let it continue running doing whatever it does. I try to get the
> app's focus again by executing it again. Code is .net2/c#. Currently, I use
> application.hide to hide the app, but i cannot figure out how to regains the
> apps focus.
>
> Any ideas?
>
> Richard

RE: 'Hiding' an application by RIch

RIch
Mon Jan 16 10:14:02 CST 2006

I have not tried capturing keypresses, but that is not the event I want to
show my application. I used Application.Hide(), but now, when I execute the
app again (which, on a smartphone, just brings the app into focus), I dont
know what message I need to override to add the Application.Show(). I've
tried most of the common ones, but me not being an expert windows programmer,
I dont know the correct one.

Rich

"Winston" wrote:

> Hi Rich,
>
> Have you tried creating a event handler in your application that can react
> to a external event like a key press. You could then show your application
> again by doing calling the this.Show() with the application.
>
> Regards,
>
> Winston
> www.Augen.co.nz
>
> "RIch" wrote:
>
> > Im writing an app that when executed, has a UI. The user then can 'hide' the
> > app and let it continue running doing whatever it does. I try to get the
> > app's focus again by executing it again. Code is .net2/c#. Currently, I use
> > application.hide to hide the app, but i cannot figure out how to regains the
> > apps focus.
> >
> > Any ideas?
> >
> > Richard