MS - PLEASE HELP (ListView, Back Key)

  • Thread starter Thread starter Hilton
  • Start date Start date
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
 
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
 
I just verified it in VS2005 and it works without fail. Are you grabbing
the right event?
 
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
 
Back
Top