locked
Open a form when placed on the cradle RRS feed

  • Question

  • Hi all,

    I am working on a project that requires a sync form to open when the handheld is placed on the cradle. The handheld is running Windows CE 5.0.

    For some reason, when I put the handheld on the cradle, a "port manager" and "USB" status windows appear; however, the form that I want to open within my application does not open. The port manager window closes, the "USB" status window remains open, but I cannot close it. If I remove the unit from the cradle, the "USB" status screen disappears and control returns to my application.

    I was wondering if anybody experienced this issue.

    Thanks in advance.


    • Edited by admdev Tuesday, August 7, 2012 12:07 PM
    Monday, August 6, 2012 7:35 PM

Answers

  • There are a couple of ways around this which might work for you.

    You could set your form TopMost property to true to ensure it is show above other windows.

    You could (via P/Invoke to CeRunAppAtEvent) have your application activated when AC power is detected (in cradle).


    Peter Foot | Microsoft Windows Phone Development MVP

    • Proposed as answer by Peter FootMVP Thursday, August 23, 2012 2:55 PM
    • Marked as answer by Elegentin Xie Monday, August 27, 2012 7:12 AM
    Thursday, August 23, 2012 2:55 PM

All replies

  • What is cradle? Would you mind explain.

    Please not forget mark your answer, and unmark your disagreed point.

    Thursday, August 9, 2012 10:18 AM
  • There are a couple of ways around this which might work for you.

    You could set your form TopMost property to true to ensure it is show above other windows.

    You could (via P/Invoke to CeRunAppAtEvent) have your application activated when AC power is detected (in cradle).


    Peter Foot | Microsoft Windows Phone Development MVP

    • Proposed as answer by Peter FootMVP Thursday, August 23, 2012 2:55 PM
    • Marked as answer by Elegentin Xie Monday, August 27, 2012 7:12 AM
    Thursday, August 23, 2012 2:55 PM