Export (0) Print
Expand All

WindowsFormsHost.EnableWindowsFormsInterop Method

Enables a System.Windows.Forms.Form to function correctly when it is opened modelessly from WPF.

Namespace: System.Windows.Forms.Integration
Assembly: WindowsFormsIntegration (in windowsformsintegration.dll)

public static void EnableWindowsFormsInterop ()
public static void EnableWindowsFormsInterop ()
public static function EnableWindowsFormsInterop ()
Not applicable.

Call the EnableWindowsFormsInterop method to forward all keyboard messages when a System.Windows.Forms.Form is opened modelessly. The EnableWindowsFormsInterop method installs a message filter that is required for modeless forms to function correctly when opened by WPF. You need to call this method only once for a particular WindowsFormsHost instance.

  • SecurityAction.Demand  for full trust for all callers higher in the call stack. This member cannot be used by partially trusted code.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft