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 Application.Run()
without passing in a form, but how can I hook the created form into the message loop?
Is there another way to go about this?
In the process of re-writing a VC++ TaskTray App, in C# .NET, I found the following method truly workable to achieve the following.
The steps I followed:
protected override void OnLoad(EventArgs e) { Visible = false; ShowInTaskbar = false; base.OnLoad(e); }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With