c# - Hiding forms on startup: why doesn't this.Hide() hide my form? -


i wanted hide main window of app on startup, put in constructor:

this.hide(); 

this doesn't hide form though. seems can buttons hide form. doing wrong here?

you can use line of code. wont hide it, minimized:

this.windowstate = formwindowstate.minimized; 

in addition, if don't want showing on task bar either, can add line:

this.showintaskbar = false; 

but why create form if don't want visible in first place?


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -