"Hilton" <nospam@nospam.com> wrote in message
news:_Ck9i.25477$JZ3.21947@newssvr13.news.prodigy.net...
> 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
>
>
>
> "Simon Hart" <srhartone@yahoo.com> wrote in message
> news:F4435399-4666-4302-A5F5-B948EE5B9279@microsoft.com...
>> It works for me, I'ved used this loads of times. Can you post a code
>> sample?
>> --
>> Simon Hart
>>
http://srhartone.blogspot.com >>
>>
>> "Hilton" wrote:
>>
>>> 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
>>>
>>>
>>> "Simon Hart" <srhartone@yahoo.com> wrote in message
>>> news:414DD3F9-F5D3-4E2C-BC25-85AE76A1A959@microsoft.com...
>>> > Hook up the KeyDown event:
>>> >
http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.keydown.aspx >>> >
>>> > Then in your event handler code something like this:
>>> >
>>> > switch(e.KeyCode)
>>> > {
>>> > case Keys.Back:
>>> > MessageBox.Show("Back key pressed");
>>> > break;
>>> > }
>>> >
>>> >
>>> > --
>>> > Simon Hart
>>> >
http://srhartone.blogspot.com >>> >
>>> >
>>> > "Hilton" wrote:
>>> >
>>> >> 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
>>> >>
>>> >>
>>> >>
>>>
>>>
>>>
>
>