Particulary key event

Hi all, I develop with VS2005, C# language, on smarpthone WM5.0 (SPV C600)

i would want to know if it's possible to capture a particulary key event. I explain:

I want to develop an application which will be lauch in background at the startup of the smartphone. And on this smartphone, there is a key on the top left corner, on the left side, which launch PocketIE.

I know that i can change the fonction of the key, in changing the target file of the shorcut ( Short_POC.ink in /windows).

But in fact, I want that when I press this key, it's start a routine in my background application. And I don't know how to do. Maybe I can use the same fonction as another key; like :

private void Form1_KeyDown(object sender, KeyEventArgs e)

{

if ((e.KeyCode == System.Windows.Forms.Keys.F1))

{

// Soft Key 1

}

But i have to know what is the exact code of the key to capture this event. And I don't know how to start an application in background too.

So, is there someone who can help me



Answer this question

Particulary key event

  • Craig Dunstan

    For implementing a keyboard hook, see http://www.infusionblogs.com/blogs/ayakhnin/archive/2006/03/05/399.aspx


  • Particulary key event