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. System.Diagnostics.Process hide process's console window

System.Diagnostics.Process hide process's console window

Scheduled Pinned Locked Moved C#
questioncsharp
5 Posts 3 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.
  • A Offline
    A Offline
    aei_totten
    wrote on last edited by
    #1

    In my program I am opening another program (a console application) with System.Diagnostics.Process.Start. How do I hide the console window? Or if I can't do that in that program (A c# console application) how do I hide the console window?

    P R 2 Replies Last reply
    0
    • A aei_totten

      In my program I am opening another program (a console application) with System.Diagnostics.Process.Start. How do I hide the console window? Or if I can't do that in that program (A c# console application) how do I hide the console window?

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Someone asked that last week, try searching for it.

      1 Reply Last reply
      0
      • A aei_totten

        In my program I am opening another program (a console application) with System.Diagnostics.Process.Start. How do I hide the console window? Or if I can't do that in that program (A c# console application) how do I hide the console window?

        R Offline
        R Offline
        Ravenet
        wrote on last edited by
        #3

        Hi Guy very easy man Process process = new Process(); ProcessStartInfo pStartInfo = new ProcessStartInfo("Your file Name"); pStartInfo.WindowStyle = ProcessWindowStyle.Hidden; process.StartInfo = pStartInfo; process.Start(); Thanks

        Cheers RRave MCTS,MCPD

        A 1 Reply Last reply
        0
        • R Ravenet

          Hi Guy very easy man Process process = new Process(); ProcessStartInfo pStartInfo = new ProcessStartInfo("Your file Name"); pStartInfo.WindowStyle = ProcessWindowStyle.Hidden; process.StartInfo = pStartInfo; process.Start(); Thanks

          Cheers RRave MCTS,MCPD

          A Offline
          A Offline
          aei_totten
          wrote on last edited by
          #4

          Thanks so much. Works like a charm :) -Brandy

          R 1 Reply Last reply
          0
          • A aei_totten

            Thanks so much. Works like a charm :) -Brandy

            R Offline
            R Offline
            Ravenet
            wrote on last edited by
            #5

            You are welcome

            Cheers RRave MCTS,MCPD

            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