Alan,
What do you exactly want to do?
You can set the WindowStyle property to Hidden from the properties
sheet to hide the window completely.
this.process1.StartInfo.Domain = "";
this.process1.StartInfo.FileName = "notepad.exe";
this.process1.StartInfo.LoadUserProfile = false;
this.process1.StartInfo.Password = null;
this.process1.StartInfo.StandardErrorEncoding = null;
this.process1.StartInfo.StandardOutputEncoding = null;
this.process1.StartInfo.UserName = "";
this.process1.StartInfo.WindowStyle =
System.Diagnostics.ProcessWindowStyle.Hidden;
this.process1.SynchronizingObject = this;
The above auto-generated code will launch notepad.exe but the window
and taskbar icon will not be visible.
Although my application is only running for a short period of time, eg. 2
seconds but it still sit on the task bar.
I have already set up the WindowStyle to Hidden.
It is not only appear on the task bar (unitl it finished) but also make my
main form flashes.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.