开发者

How to know that my application is running in Background or Foreground?

开发者 https://www.devze.com 2023-01-22 19:02 出处:网络
I am making Windows Mobile 6.5 Application using C sharp. In the application, I am opening the default browser in a case. When I open the browser, the application is still runing in background. But I

I am making Windows Mobile 6.5 Application using C sharp.

In the application, I am opening the default browser in a case. When I open the browser, the application is still runing in background. But I wish that the application is not runing and when the user returns to the application, the application is runing again.

So, I should know t开发者_如何转开发he status that the application is runing in background or in foreground. How to know that???

If anyone knows that, please reply to me. Thanks in advance.


Take a look at this

http://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.status.systemproperty.aspx

The property ActiveApplication

Will help you with what you want.

Also I found this video with Daniel Moth using the stuff above

http://www.microsoft.com/uk/msdn/screencasts/screencast/191/Windows-Mobile-Managed-APIs-Status.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消