Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. server

server

Scheduled Pinned Locked Moved C#
sysadminquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mrithula8
    wrote on last edited by
    #1

    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)?

    J 1 Reply Last reply
    0
    • M mrithula8

      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)?

      J Offline
      J Offline
      JoseMenendez
      wrote on last edited by
      #2

      Use ProcessStartInfo, and set UseShellExecute to true Then you can run the process as you where using the console.

      Jm www.menendezpoo.com

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups