locked
appliction not showing in task manager or running from icon after this.hide(); RRS feed

  • Question

  • How can I bring a mobile app back to focus after this.hide() is called. it is not showing in the task manger as a appliction it is however showing as a process.


    John
    Friday, July 30, 2010 2:59 AM

Answers

  • Hi john,

    We can find its handle and show it programmatically, like the code below:

    *****************************************

    void CFindwindowTestDlg::OnBnClickedButton1()
    {
     // TODO: Add your control notification handler code here
     
     HWND h =::FindWindow(NULL,L"test");
     ::ShowWindow(h,SW_SHOW);
     ::SetForegroundWindow(h);
     
    }

    *****************************************

    It works fine in my local.

    Best regards,
    Guang-Ming Bian - MSFT


    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Tuesday, August 3, 2010 10:10 AM
  • Hi John,

    Generally hide creates the problems. So try to minimize the form instead of hiding. Please check this, it will help you.

    http://www.blondmobile.com/2008/04/windows-mobilec-how-to-minimize-your_5311.html

    Regards,

    Malleswar

     

    • Marked as answer by JohnBailey Tuesday, August 17, 2010 10:57 PM
    Friday, August 13, 2010 10:37 AM

All replies

  • Hi john,

    We can find its handle and show it programmatically, like the code below:

    *****************************************

    void CFindwindowTestDlg::OnBnClickedButton1()
    {
     // TODO: Add your control notification handler code here
     
     HWND h =::FindWindow(NULL,L"test");
     ::ShowWindow(h,SW_SHOW);
     ::SetForegroundWindow(h);
     
    }

    *****************************************

    It works fine in my local.

    Best regards,
    Guang-Ming Bian - MSFT


    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Tuesday, August 3, 2010 10:10 AM
  • so I can olny do this in c++?
    John
    Thursday, August 12, 2010 10:28 PM
  • is there a way to bring the app back. When you try to run it again it dose not run form the exe or icon. it shows as still running in task manager as a process what am I doing wrong. I am just doing this.hide() on the main form. is there some other way to send it to the background that is all I am trying to achive.
    John
    Thursday, August 12, 2010 11:01 PM
  • Why are you hiding your application in a first place?

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Friday, August 13, 2010 5:34 AM
  • Hi John,

    Generally hide creates the problems. So try to minimize the form instead of hiding. Please check this, it will help you.

    http://www.blondmobile.com/2008/04/windows-mobilec-how-to-minimize-your_5311.html

    Regards,

    Malleswar

     

    • Marked as answer by JohnBailey Tuesday, August 17, 2010 10:57 PM
    Friday, August 13, 2010 10:37 AM
  • this appliction monoters text messages in the background would be iteal
    John
    Tuesday, August 17, 2010 10:45 PM
  • thanks this did the trick perfectly.
    John
    Tuesday, August 17, 2010 10:57 PM