Tuesday, February 19, 2013

Create a windows form initially hidden

I've recently had the need to create a hidden windows .NET form (from creation) and found numerous suggestions, however the most simple and elegant way seems to be:
this->ShowInTaskbar = false;
this->WindowState = System::Windows::Forms::FormWindowState::Minimized
.. before you create the window/message pump with Application::Run().

1 comment:

Unknown said...

That's the best idea of all. The double glazing suppliers for cottage provide with the best quality products now at least cost and fair deals. Isn't it great?