473,782 Members | 2,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

How do I make it does NOT appear on the task bar when it is started?
Oct 11 '06 #1
2 7214
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.S tartInfo.Domain = "";
this.process1.S tartInfo.FileNa me = "notepad.ex e";
this.process1.S tartInfo.LoadUs erProfile = false;
this.process1.S tartInfo.Passwo rd = null;
this.process1.S tartInfo.Standa rdErrorEncoding = null;
this.process1.S tartInfo.Standa rdOutputEncodin g = null;
this.process1.S tartInfo.UserNa me = "";
this.process1.S tartInfo.Window Style =
System.Diagnost ics.ProcessWind owStyle.Hidden;
this.process1.S ynchronizingObj ect = 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
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.goo glegroups.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.S tartInfo.Domain = "";
this.process1.S tartInfo.FileNa me = "notepad.ex e";
this.process1.S tartInfo.LoadUs erProfile = false;
this.process1.S tartInfo.Passwo rd = null;
this.process1.S tartInfo.Standa rdErrorEncoding = null;
this.process1.S tartInfo.Standa rdOutputEncodin g = null;
this.process1.S tartInfo.UserNa me = "";
this.process1.S tartInfo.Window Style =
System.Diagnost ics.ProcessWind owStyle.Hidden;
this.process1.S ynchronizingObj ect = 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2525
by: Sriram | last post by:
Hi. Following code works fine on XP, but not on W2K+SP4. When I run it on W2K, it does not give me any error, exception. I have tried setting StartInfo.ErrorDialog = True, ErrorDialogParentHandle, CreateNoWindow = False, but in vain... The xcopy is available in the path set in system environment variable of W2k box...
5
8357
by: Mark | last post by:
Hi all, I am trying to execute a batch file to copy over files from one server to another. The batch file is using robocopy to copy over the files. ============ private void CopyFiles() {// Use the process name space to copy over the files System.Diagnostics.Process oProc = new System.Diagnostics.Process(); oProc.StartInfo.FileName ="c:\CopyFiles.bat" ; oProc.Start();
3
1278
by: Matthias Kwiedor | last post by:
Hello! I wan't to open a Internet Explorer from C#. For this i read the Registry Settings (to check the default Browser - won't do this just without that) string strFilename = "c:\Program Files\Internet Explorer\iexplore.exe"; string strArguments = "http://www.google.com/"; Process ExternalURL = new Process(); ExternalURL.StartInfo.FileName = @strFilename;
4
5949
by: jam | last post by:
Dear All, I have a command process running xcopy in console, and now I want to execute the program Rsync After the files are copied...how could i do?? Process p10=new Process(); p10.StartInfo.FileName = "cmd.exe"; p10.StartInfo.UseShellExecute = false; // p.StartInfo.CreateNoWindow = true; p10.StartInfo.RedirectStandardInput = true;
7
3351
by: Samantha | last post by:
Hello , I am developping a program for Win98 plateform, and I am stucking with a problem, hope you can help me. I have a program running 2 process : - One process running the Xcopy.exe - When the first process is finished, it runs another Exe process (HHC.exe) The code is below:
3
4253
by: William Stacey [MVP] | last post by:
Is this a bug in fx2? I expect they did not carry forward all the StartInfo properties to api used with Username/Password. When you remove UserName/password, the window does not show as expected. private void button5_Click(object sender, EventArgs e) { Process p = new Process(); p.StartInfo.FileName = "cmd.exe"; p.StartInfo.Arguments = @"/c dir c:\windows\system32"; p.StartInfo.UseShellExecute = false;
2
2462
by: brian.gabriel | last post by:
I am trying to kick of a DOS program from a VB.Net service. The program works fine when called from a batch file, and from a Windows form, but it has problems when called from a service. The program runs successfully but does not give control back to the service. After the Process.Start statement no code will execute. The program has exited and is not shown in process monitor. I am running the service under an admin account. See...
10
6350
by: Stephany Young | last post by:
When one uses the System.Diagnostics.Process.Start method to launch a common or garden Console application, one can set the WindowStyle property of the StartInfo object to ProcessWindowStyle.Hidden so that the window for the Console application is not visible. However, when using some of the 'advanced' properties of the StartInfo object, like Username, Password and Domain, the WindowsStyle property of the StartInfo object is ignored....
0
882
by: mbailey | last post by:
I am new to VB.Net (Visual Studio 2005) and am encountering a problem calling an external exe file with two parameters. If I use the Run dialog box of the Windows Start menu and enter: "C:\Program Files\TIES\Proposal.NET\HMSCCURV.exe" C:\1-28903T.TI C:\1-28903T.TO everything works correctly. When the oProcess.Start() statement from my application shown below executes, I receive an error message stating "The parameter is incorrect": '...
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10143
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10076
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8964
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7486
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5507
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4040
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2870
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.