>>I am trying to make a keypress work to capture CTRL+c. However that seems to be a reserved key and the keypress does not trigger at all. Same for Ctrl+x and Ctrl+v. All other keys as well as Ctrl+Shift+c do work.
>>
>>So I am trying to find a workaround to recognize the event if that key is being pressed, but so far no luck. Any suggestions would be highly appreciated.
>
>Ctrl-c is reserved, as you have noticed. If you want the key combination to work as most people expect, read here for some tips:
http://www.tek-tips.com/viewthread.cfm?qid=823135>
>I am very interested in see what solution you end p with.
Yes the problem is that in this particular case Ctrl+C should do something different, it should put a path into the clipboard from a fields of the underlying cursor. But the challenge is that everywhere else in the program Ctrl+c should do the normal standard copy text function. Since we are talking about a grid control here with Allowcellselection = .F., there is nothing to copy.
Probably one workaround could be in SetFocus() On Key Label and in LostFocus reset it. I will keep you updated.
Christian Isberner
Software Consultant