ListBox with ctrl-c and other ctrl keys.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I have a many line owner-draw list box in my program. I use the "Extended" selection method that allows lines to be highlighted.

How do I trap the ctrl-c key so that I can copy the selected lines to the paste buffer?

Once I have text, how do I put the text into the paste buffer?

It seems the default mechanism for ctrl keys in a list box is to jump to the top most line with that letter. So if you press ctrl-p the selection jumps to the topmost line that begins with a p. How do I disable this?
.