How Do I remove the Title bar of a Process i Started?  
Author Message
hellfirec





PostPosted: Visual C# General, How Do I remove the Title bar of a Process i Started? Top

Hi
i am new to C#. how can i remove the title bar and move the window of the process i started the process like this.

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;

proc.Start();


Visual C#12  
 
 
ahmedilyas





PostPosted: Visual C# General, How Do I remove the Title bar of a Process i Started? Top

you can't quite remove the title bar. the Process class just starts a process and thats it. you can hide the process if you like using the ProcessStartInfo class() and setting the WindowStyle to hidden for example.

 

System.Diagnostics.Process theProc = new System.Diagnostics.Process();

System.Diagnostics.ProcessStartInfo thePSI = new System.Diagnostics.ProcessStartInfo("path\file.exe");

thePSI.WorkingStyle = ProcessWindowStyle.Hidden;

theProc.Start(thePSI);