Treeview keypress event

Hai

how can i detect a key is pressed ( say enter button in a smart phone) when the focus is on the tree view

I had tried KeyDown , KeyUp, KeyPress events but they didnt catch the key pressing

Please help me..

Regards

Ratheesh




Answer this question

Treeview keypress event

  • Anil Narayanan

    Hi the key press event for the treeview ddnt worked in emulator..but it worked in Smart phone device.. my form contains no other control other than treeview

  • David Hanak

    Hi Ratheesh,

    I tried this on a Pocket PC 2003 application using Pocket PC 2003 SE Emulator. I am able to get both KeyPress and KeyDown events when the focus is on the treeview. This works regardless of whether there are any nodes in the tree or not. Please send more information on the type of project you are having and any other controls in your form. If you can send a sample app where this is happening then it will be great.

    Regards,

    Sandeep


  • Treeview keypress event