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. How to hide the black console window

How to hide the black console window

Scheduled Pinned Locked Moved C#
questioncsharptutorial
7 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi guys, How can I hide the black window which appears during the execution of a console application? I want to hide it, becasue I have a program which doesn't accept any user input and just goes on performing some specific tasks which takes quite long time. Thanks, Cheers, Rajdeep.NET ;)

    L T P 3 Replies Last reply
    0
    • L Lost User

      Hi guys, How can I hide the black window which appears during the execution of a console application? I want to hide it, becasue I have a program which doesn't accept any user input and just goes on performing some specific tasks which takes quite long time. Thanks, Cheers, Rajdeep.NET ;)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      How about googling, see the first link in google : http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/ea8b0fd5-a660-46f9-9dcb-d525cc22dcbd[^]

      1 Reply Last reply
      0
      • L Lost User

        Hi guys, How can I hide the black window which appears during the execution of a console application? I want to hide it, becasue I have a program which doesn't accept any user input and just goes on performing some specific tasks which takes quite long time. Thanks, Cheers, Rajdeep.NET ;)

        T Offline
        T Offline
        Tuwing Sabado
        wrote on last edited by
        #3

        No need to change your existing code just change your project output type as Windows Application instead of Console Application. How to change your project output type 1. from your solution explorer right click your console project then choose Property menu. 2. from the application tab change the value of Output type dropdownlist. Happy coding...

        L 1 Reply Last reply
        0
        • L Lost User

          Hi guys, How can I hide the black window which appears during the execution of a console application? I want to hide it, becasue I have a program which doesn't accept any user input and just goes on performing some specific tasks which takes quite long time. Thanks, Cheers, Rajdeep.NET ;)

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Rajdeep.NET wrote:

          How can I hide the black window which appears during the execution of a console application? I want to hide it, becasue I have a program which doesn't accept any user input and just goes on performing some specific tasks which takes quite long time.

          Don't run a console application then. If you have an application that doesn't require user interaction, write it as a service instead.

          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

          As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

          My blog | My articles | MoXAML PowerToys | Onyx

          L 1 Reply Last reply
          0
          • T Tuwing Sabado

            No need to change your existing code just change your project output type as Windows Application instead of Console Application. How to change your project output type 1. from your solution explorer right click your console project then choose Property menu. 2. from the application tab change the value of Output type dropdownlist. Happy coding...

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Thanks Mark, that worked very well..... thanks for preventing me from implementing DLL calling codes to the project. :-D

            1 Reply Last reply
            0
            • P Pete OHanlon

              Rajdeep.NET wrote:

              How can I hide the black window which appears during the execution of a console application? I want to hide it, becasue I have a program which doesn't accept any user input and just goes on performing some specific tasks which takes quite long time.

              Don't run a console application then. If you have an application that doesn't require user interaction, write it as a service instead.

              "WPF has many lovers. It's a veritable porn star!" - Josh Smith

              As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

              My blog | My articles | MoXAML PowerToys | Onyx

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Alright.... I will remember that. Thanks, Rajdeep.NET :-D

              L 1 Reply Last reply
              0
              • L Lost User

                Alright.... I will remember that. Thanks, Rajdeep.NET :-D

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Red flags all over all your posts.

                Check out the CodeProject forum Guidelines[^]

                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