JimColeman
05-14-2007, 06:45 PM
Hi everyone. I am writing a C# app that has MapPoint embedded in it. I want to implement my own ctrl-F functionality, and hide MapPoint’s, however I don't see an event that is provided for KeyUp or KeyDown (like it is for mouse move, mouse click, etc.) Any ideas on how to accomplish this?
I tried overriding the WndProc of the panel that the mappoint control is on but mappoint gobbles up all the KeyStroke messages before it gets there. Is there a way to override MapPoints WndProc? If I catch the KeyStroke I want in the PreviewKeyDown event, is there a way to stop mappoint for popping up its find dialog?
Any advice would be very welcome!
Thanks in advance!
I tried overriding the WndProc of the panel that the mappoint control is on but mappoint gobbles up all the KeyStroke messages before it gets there. Is there a way to override MapPoints WndProc? If I catch the KeyStroke I want in the PreviewKeyDown event, is there a way to stop mappoint for popping up its find dialog?
Any advice would be very welcome!
Thanks in advance!