simple console question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sharon and James

    #1

    simple console question

    How can I configure Visual Studio .Net so the console does not go away when
    I execute console programs.
    Also, is there a good newsgroup for general Visual Studio .Net questions,
    non C#.

    Thank You


  • Rolln_Thndr

    #2
    Re: simple console question

    You could add a simple Console.ReadLin e(); to the end of your Main method.
    Then it will wait for you to press enter...


    "Sharon and James" <sjbright3@comc ast.net> wrote in message
    news:ZkudnbTY3I D-_caiXTWJkg@comc ast.com...[color=blue]
    > How can I configure Visual Studio .Net so the console does not go away[/color]
    when[color=blue]
    > I execute console programs.
    > Also, is there a good newsgroup for general Visual Studio .Net questions,
    > non C#.
    >
    > Thank You
    >
    >[/color]


    Comment

    • Jasper Kent

      #3
      Re: simple console question

      If you run nodebug (with "!") then the IDE holds the console open for
      you until you press a key. For unfathomable reasons, this does not
      happen in debug mode, but a break on the last '}' of main will sort it.

      microsoft.publi c.studio.genera l is a newsgroup, but it seems a bit
      quiet.

      Regards,

      Jasper Kent

      *** Sent via Developersdex http://www.developersdex.com ***
      Don't just participate in USENET...get rewarded for it!

      Comment

      Working...