外部アプリケーションのウィンドウをアクティブにするここでは、自分のアプリケーションではなく、外部のアプリケーションのウィンドウをアクティブにする方法(つまり、「フォームをアクティブにする」が使えない場合の方法)を紹介します。 VB.NETのAppActivateを使用する方法外部アプリケーションのウィンドウをアクティブにするには、VB.NETであればAppActivateメソッドを使うことができます。使い方は、アクティブにしたいウィンドウのタイトルを指定して呼び出すだけです。大文字と小文字は区別しません。完全に一致するタイトルのウィンドウがなかった場合は、指定された文字列で終わるタイトルのウィンドウをアクティブにします。それでも見つからなかった場合は、例外ArgumentExceptionをスローします。 以下に、「メモ帳」というタイトルのウィンドウをアクティブにする例を示します。C#では