suppress console window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eric Nelson

    #1

    suppress console window

    Hi folks,
    How do I suppress the console window in a console app? If I double-click the
    app from explorer, I'd like the window not to appear.
    Thanks,
    Eric
  • Jorge Matos

    #2
    RE: suppress console window

    One way to achieve what you want is to change the application into a Windows
    Forms application and remove all the forms and create a class with a static
    void Main() method in it.

    "Eric Nelson" wrote:
    [color=blue]
    > Hi folks,
    > How do I suppress the console window in a console app? If I double-click the
    > app from explorer, I'd like the window not to appear.
    > Thanks,
    > Eric[/color]

    Comment

    • Eric Nelson

      #3
      RE: suppress console window

      Clever!
      That makes it a Windows NonForms application then, doesn't it...

      E ;-)

      "Jorge Matos" wrote:
      [color=blue]
      > One way to achieve what you want is to change the application into a Windows
      > Forms application and remove all the forms and create a class with a static
      > void Main() method in it.
      >
      > "Eric Nelson" wrote:
      >[color=green]
      > > Hi folks,
      > > How do I suppress the console window in a console app? If I double-click the
      > > app from explorer, I'd like the window not to appear.
      > > Thanks,
      > > Eric[/color][/color]

      Comment

      • Jorge Matos

        #4
        RE: suppress console window

        Funny!

        "Eric Nelson" wrote:
        [color=blue]
        > Clever!
        > That makes it a Windows NonForms application then, doesn't it...
        >
        > E ;-)[/color]

        Comment

        • Joe Rattz

          #5
          RE: suppress console window

          I already had a console app written and was about to create a new windows app
          and do what you said. But, just for kicks, I decided to change the project's
          Output Type property from Console Application to Windows Application just to
          see what it would do. IT WORKED.

          The property is in the project properties dialog, Common
          Properties|Gene ral|Output Type. Setting it to Windows Application eliminated
          my console window.

          Thanks.

          "Jorge Matos" wrote:
          [color=blue]
          > One way to achieve what you want is to change the application into a Windows
          > Forms application and remove all the forms and create a class with a static
          > void Main() method in it.
          >
          > "Eric Nelson" wrote:
          >[color=green]
          > > Hi folks,
          > > How do I suppress the console window in a console app? If I double-click the
          > > app from explorer, I'd like the window not to appear.
          > > Thanks,
          > > Eric[/color][/color]

          Comment

          Working...