Overriding arrow key events in ListView

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

By default, ListView handles Up & Down arrow keys events to change the
current item selected. I need to disable this feature because I do custom
processing on these events.

How can I do that?

Thanks,

Hugo
 
H.B. said:
By default, ListView handles Up & Down arrow keys events to change the
current item selected. I need to disable this feature because I do custom
processing on these events.

Handle the KeyDown event, or override the OnKeyDown method. The key
codes are VK_UP and VK_DOWN.

Tom
 

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

Back
Top