Friday 5 August 2011

Simple C# Program Tutorial

I'll get straight to business.If you are doing nothing then how about making a software right now.
Go to this site for downloading the latest version of IDE(integrated development environment) which gives you a great interface to write your code.
If you've windows XP installed then I'll recommend you to download and install service pack 3 if the IDE is not working or you can download one of the previous versions of the IDE from here (fully recommended).You can read the system requirements from the site I've given the link for.
Select the link which is written as Visual C# 2008 Express Edition with SP1 .Download it and install it on your PC.
Now when the software is installed on your computer.
-> Open Vishual Studio 2008.(2010 in case of VS2010)
->Click on Create Project




->The below window will appear after clicking the Create Project.
->Select the options as shown in the below image.


->Select the options as I've selected and click ok.
->You will be shown extra boxes below which would ask you where to save the project and what should be your project name you can give them whatever path and name you want.
->When you click ok something similar to the below window will appear in front of you.That's it.
->Now its your time to write hello world on the screen.




->Now between the static void Main(string[] args) brackets we just have to write a single line of Code i.e
  






To run the application hit the keys Ctrl+F5 or to debug it click only F5 or click on the green arrow(pointing to the right) at the top
 in the toolbar.

Some Important Points:

1.Debugging is when you run your application step by step to check for errors that where the error is occurring.Because when you write a code with lots of lines than it becomes difficult to find where the application is generating error.It will be more clearer in the coming tutorials.

2.You can write any thing between the inverted commas("") and that will be printed on the screen as it is.So
 its very easy.

Now just play around an have fun....