Wednesday, June 10, 2015

How to Completely hide windows Form

If you are thinking about how to completely hide your Windows Form Application, so that it will run silently in the background without anyone knowing about it.

To do that add the following code

        protected override void OnLoad(EventArgs e)
            Visible = false;
            ShowInTaskbar = false;

This code will completely hide your form at startup.

I hope it was informative for you and I would like to Thank you for reading.