I just want a c# application with a hidden main window that will process and respond to window messages.
I can create a form without showing it, and can then call Ap
The best way is to use the following 1-2 lines in the constuctor:
this.WindowState = FormWindowState.Minimized; this.ShowInTaskbar = false; // This is optional
You can even set the Minimized property in the VS Property window.