By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,838 Members | 2,222 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,838 IT Pros & Developers. It's quick & easy.

Process.StartInfo - how to make it 'NOT' shown on the taskbar

P: n/a
How do I make it does NOT appear on the task bar when it is started?
Oct 11 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.

Is this what you want?

Alan T wrote:
How do I make it does NOT appear on the task bar when it is started?
Oct 11 '06 #2

P: n/a
Hi,

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.

"Mugunth" <mu***********@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
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.

Is this what you want?

Alan T wrote:
>How do I make it does NOT appear on the task bar when it is started?

Oct 12 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.