내보내기(0) 인쇄
모두 확장

WindowsFormsHost.EnableWindowsFormsInterop 메서드

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

네임스페이스: System.Windows.Forms.Integration
어셈블리: WindowsFormsIntegration(windowsformsintegration.dll)

public static void EnableWindowsFormsInterop ()
public static void EnableWindowsFormsInterop ()
public static function EnableWindowsFormsInterop ()
적용할 수 없음.

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.

Microsoft .NET Framework 3.0은 Windows Vista, Microsoft Windows XP SP2 및 Windows Server 2003 SP1에서 지원됩니다.

.NET Framework

3.0에서 지원

커뮤니티 추가 항목

추가
표시:
© 2014 Microsoft