このソリューション(最初の回答)を使用してホットキーを作成しています。したがって、イベント ハンドラー メソッドがあります。
static void HotKeyManager_HotKeyPressed(object sender, HotKeyEventArgs e)
{
Console.WriteLine("Hit me!");
}
そこに私のフォームのインスタンスを取得する方法は? mainメソッドでクラスの静的フィールドをフォーム化してみたのですが、System.ArgumentException: Controls created on one thread cannot be parented to a control on a different thread.
どうすればいいですか?