PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
'Hiding' an application
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
'Hiding' an application
![]() |
'Hiding' an application |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

