troubleshooting Question

Triggering hotkey's with a minimized form

Avatar of wimpos
wimpos asked on
Smartphone Programming
2 Comments1 Solution222 ViewsLast Modified:

I'm writing an application for a PDA;

    * OS: Microsoft Windows Mobile 5.0
    * lang: C# .Net 2.0
    * IDE: Microsoft Visual Studio 2005

I wanted to override the green "call" button of the PDA. So the cprog.exe (default phone application does not launches. This succeeded using this code:

long res = SendMessage(SHFindMenuBar(this.Handle), SHCMBM_OVERRIDEKEY, VK_TTALK,


 if (m.Msg == WM_HOTKEY)
                    int key = m.LParam.ToInt32() >> 16;
                        case VK_TTALK:

But once my application is minimized (thus still running on the background), the function of the "call" button hotkey is no longer triggerd and overridden by my application...

Is there a solution for this problem?

Kind regards and thanks for your effort

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros