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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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