MS - PLEASE HELP (ListView, Back Key)

H

Hilton

Hi,

Your UI guidelines state that we need to treat the Back Key appropriately
(on the SP). However, your ListView doesn't seem to behave correctly. Do
you have any suggestions on how we can 'intercept' the Back Key when a
ListView has the focus, then do something and set Handled=true?

Thanks,

Hilton
 
H

Hilton

Simon,

Thanks for the reply. That sure would be nice, but MS have a bug and the
Back key doesn't get to KeyPress.

Hilton
 
M

macleod

I just verified it in VS2005 and it works without fail. Are you grabbing
the right event?
 
H

Hilton

Simon, macleod,

Are you running it on CF 2.0 or CF 1.0? On 1.0 all the key presses are
caught except Back Key?

public Form1 ()
{
InitializeComponent ();

this.lv.KeyPress += new KeyPressEventHandler (this.lv_KeyPress);
}

void lv_KeyPress (object sender, KeyPressEventArgs kpea)
{
MessageBox.Show (kpea.KeyChar.ToString ());
}

Thanks,

Hilton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top