server
-
Hi, I have a doubt.If i am using Process.Start() the exe file gets opened. //Method1 Actually if i am going to run the server from the console,I will use csc /t:exe Server.cs //compile Server//run Method2 Previously i defined Server separately and run that file using the console,i defined client in the Form1.cs (which i run using the Start Debugging option).It worked well Now i have defined client in Form1.cs and try to send message to the server (i.e.exe file).This exe is just opened.Is this exe same as the one obtained by Method1(i.e.exe obtained by using "run" command)?
-
Hi, I have a doubt.If i am using Process.Start() the exe file gets opened. //Method1 Actually if i am going to run the server from the console,I will use csc /t:exe Server.cs //compile Server//run Method2 Previously i defined Server separately and run that file using the console,i defined client in the Form1.cs (which i run using the Start Debugging option).It worked well Now i have defined client in Form1.cs and try to send message to the server (i.e.exe file).This exe is just opened.Is this exe same as the one obtained by Method1(i.e.exe obtained by using "run" command)?
Use ProcessStartInfo, and set UseShellExecute to
true
Then you can run the process as you where using the console.