I'm using this solution(first answer) to make hotkeys. So, it has event handler method :
static void HotKeyManager_HotKeyPressed(object sender, HotKeyEventArgs e)
{
Console.WriteLine("Hit me!");
}
How to get an instance of my form there? I tried making form a static field of class with main method, but I have System.ArgumentException: Controls created on one thread cannot be parented to a control on a different thread. How to do it?