Version

RefreshMessageFilter Method

Refreshes any message filters in use by Infragistics controls.
Syntax
'Declaration
 
Public Shared Sub RefreshMessageFilter() 
public static void RefreshMessageFilter()
Remarks

MessageFilters are managed at the thread static level. But the filters are applied to a specific application. Since there is no way to determine the current application on the thread, when an application exits and a new application runs on the same thread, there is no way to detect that the existing message filters are now being applied to an application which is no longer active. To alleviate this, call RefreshMessageFilters after the application exits and before the new application is run.

This method should only be called when no application is currently running. I can be safely called before of after a call to Application.Run, but should never be called during an Application.Run call.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also