Run8stud
Topic Author
Posts: 10
Joined: 15 Jun 2018, 21:06

Listbox KeyDown event question

27 Jul 2018, 21:26

I have a ListBox and I'm trying to use Extended selection mode. Single and Multiple modes both work perfectly normally, but Extended is not. This same listbox has a KeyDown event where I use a switch-case block to handle a couple other keys, and these work fine. I noticed while troubleshooting via a breakpoint that when I press any of the Control or Shift keys, the KeyDown event fires, however, KeyEventArgs.Key reports Key.None. Do I need to do something special, or is this a bug?
 
Run8stud
Topic Author
Posts: 10
Joined: 15 Jun 2018, 21:06

Re: Listbox KeyDown event question

27 Jul 2018, 22:11

My apologies, it never fails... I spend two hours trying to figure out what I did wrong, finally ask a question, and then find my error. Please delete my question above.
 
User avatar
sfernandez
Site Admin
Posts: 1912
Joined: 22 Dec 2011, 19:20

Re: Listbox KeyDown event question

01 Aug 2018, 13:39

Ok, thanks for the update.
I'm closing this topic.

Who is online

Users browsing this forum: Google [Bot] and 0 guests