473,791 Members | 2,725 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 7215
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
3352
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
4254
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
2467
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
10426
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
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
10154
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
9993
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7537
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
5430
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5558
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2913
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.