KeyPreview

  • Thread starter Thread starter Lou
  • Start date Start date
L

Lou

I have an activeX control in my .NET app that steels the "Delete" key, How
can I Steel the key first. I tried the
KeyPreview but that doesn't get the key first.
-Louie
 
you can use a messagefilter to intercept all window messages

see this example code http://www.freevbcode.com/ShowCode.Asp?ID=5635

in this situation i used this technique to pre process messages that were
otherwise send to the webbrowser control , however you can use this aproach
for anny control

regards

Michel Posseth [MCP]
 

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