PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework 'Hiding' an application

Reply

'Hiding' an application

 
Thread Tools Rate Thread
Old 14-01-2006, 06:28 AM   #1
=?Utf-8?B?UkljaA==?=
Guest
 
Posts: n/a
Default 'Hiding' an application


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
  Reply With Quote
Old 16-01-2006, 01:40 AM   #2
=?Utf-8?B?V2luc3Rvbg==?=
Guest
 
Posts: n/a
Default RE: 'Hiding' an application

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

  Reply With Quote
Old 16-01-2006, 04:14 PM   #3
=?Utf-8?B?UkljaA==?=
Guest
 
Posts: n/a
Default RE: 'Hiding' an application

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

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off