WindowsFormsHost.EnableWindowsFormsInterop メソッド

定義

Form を WPF からモードレスで開いたときに、このフォームが正常に機能するようにします。

public:
 static void EnableWindowsFormsInterop();
public static void EnableWindowsFormsInterop ();
static member EnableWindowsFormsInterop : unit -> unit
Public Shared Sub EnableWindowsFormsInterop ()

注釈

モードレスで EnableWindowsFormsInterop 開かれたときにすべてのキーボード メッセージを転送するには、メソッドを System.Windows.Forms.Form 呼び出します。 このメソッドは EnableWindowsFormsInterop 、WPF で開いたときにモードレス フォームが正しく機能するために必要なメッセージ フィルターをインストールします。 このメソッドは、特定 WindowsFormsHost のインスタンスに対して 1 回だけ呼び出す必要があります。

適用対象

こちらもご覧ください