By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,290 Members | 1,204 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,290 IT Pros & Developers. It's quick & easy.

IMessageFilter vs KeyPreview

P: 21
I want to have a form that accepts keypresses. The controls other than the form should not receive any of the user input. I have implemented it using IMessageFilter but now just now I discovered about KeyPreview.

What is the difference between IMessageFilter and KeyPreview? Is there a significant benefit using one way than the other?
Feb 1 '08 #1
Share this Question
Share on Google+
2 Replies


P: 21
Thanks but I already checked Google and I can't find the answer. The second result from link you gave me mentioned something about compact framework but it is nto really clear about what they are talking about.

So I am still wondering if there is any difference between IMessageFilter and KeyPreview?
Feb 1 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.