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
Post a Comment