Friday, February 14, 2014

Visual Studio 2010 - Beginning tutorial

This is a tutorial on how to install, compile and run your first Visual Studio 2010 Windows form application from start to finish.

We will be performing this coding in C# and you will not need to know much or anything about C# in order to run your first application in this example.
  1. Simply go to: http://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
  2. Scroll down to about mid-page and select the Visual C# 2010 Express button.


  3. Click "Install Now". A download will start, an exectuable. Once it is completed, run it.
After you have installed the product and run it for the first time, it will prompt you for a registration code.


You will need to click "Obtain a registration key online" and login with your Microsoft email account. Once you login, it will ask you a few questions about what you are using the product for. Fill out the questions and next you will receive your code.

Now you are ready to start writing your first application!

Here are the next steps you will need to take:

Go to file and select new project. You will see the below screen come up.



In this screen, select "Windows Forms Application".

Once you have created your new Windows Form Application, your screen should look like this above. Please notice the items on your right hand as these are the files that are stored on your local file system.



You can right click "Form1.cs" and go to "View Code".




Once you click "View Code", you can see what the actual code looks like for this project and here you can edit items in your project as needed.

All you need to do is click the green triangle under the "Window" button and your application will run.

Congratulations! You just built, compiled and ran your first C# program!

Disclaimer: I am not responsible for any damage or any malfunctions that may occur during the process of installing this application and use.

No comments: