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#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -