Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Visual Stidio C# small problem

  • 25-10-2013 06:06PM
    #1
    Registered Users, Registered Users 2 Posts: 174 ✭✭


    Hi, I'm new to this c# craic and I've just downloaded VS2010 to start an assignment, while using 2013 in class there was a 'Start Without Debugging' option, but in 2010 there is only 'Start Debugging'.

    Can anyone tell me is there anyway to open up without debugging? I've pressed CTRL + F5 but that just opens up the Windows cmd window :confused:

    Cheers for any help


Comments

  • Registered Users, Registered Users 2 Posts: 114 ✭✭L8rdude


    Are you using visual 2010 express? or the full version ?

    Have you started with a console application project ? which would explain windows cmd window.

    CTRL + F5 shoudl run with debug.


  • Registered Users, Registered Users 2 Posts: 174 ✭✭jeddie20


    L8rdude wrote: »
    Are you using visual 2010 express? or the full version ?

    Have you started with a console application project ? which would explain windows cmd window.

    CTRL + F5 shoudl run with debug.

    Yeah I'm using the express version, I started with console application project, have I gone wrong already? :pac:


  • Registered Users, Registered Users 2 Posts: 114 ✭✭L8rdude


    No that's fine.

    If you do a console.writeline("hello");

    formatting might be off there.

    You should see hello when you run your project.

    What are you trying to do?


  • Registered Users, Registered Users 2 Posts: 174 ✭✭jeddie20


    Yeah I do see hello when I run the project, but the window closes again as soon as it opens, as in, you have to look closely to make out 'hello' but it will close just as quick. I just want it to stay open so I can actually see that everything is working


  • Registered Users, Registered Users 2 Posts: 114 ✭✭L8rdude


    Odd, try adding Console.ReadKey(); after Console.Writeline ...


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 174 ✭✭jeddie20


    Yes, that does the job :) Cheers for that :)


Advertisement