How I know if my app. is the background.

Discussion in 'Questions (Windows Mobile)' started by 2220, Mar 13, 2009.

  1. 2220

    2220 Member Licensed User

    Hello,

    I don't know how to detect if my app is in running in the background. And if it's possible to be the active window.

    Any idea?

    Thanks in advance.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    When your application is in the background the visible property of all controls will return false. So you can check the visible control of a control that should be visible and if it's false then your application is running in the background.
    Calling Form.Show will activate your application.
     
  3. agraham

    agraham Expert Licensed User

    :sign0142: I must remember that!
     
  4. 2220

    2220 Member Licensed User

    Thank you I didn't know it.

    If for example, I'm using Tomtom and my gps apps together. With just the MainForm.show can visualize my app.

    I was trying with Form.BringToFront unsuccessfully.

    Thank you very much!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice