- value
- The implementation of the System.Windows.Forms.IMessageFilter interface you want to install.
Use a message filter to prevent specific events from being raised or to perform special operations for an event before it is passed to an event handler. Message filters are unique to a specific thread.
To prevent a message from being dispatched, the value parameter instance that you pass to this method must override the IMessageFilter.PreFilterMessage(Message@) method with the code to handle the message. The method must return false.
Adding message filters to the message pump for an application can degrade performance.