Tutorial 1
Install and configure MS Visual C# 2010 Express

Download and install Microsoft Visual Visual C# 2010 Express.

Follow the usual steps and accept prompt defaults.

After install, start Microsoft Visual Visual C# 2010 Express. Add 2 documentation URLs to your browser favourites:

Visual C#




.NET Framework Class Library



Create Hello World Windows Application

New Project -> Windows Forms Application

Name: HelloWorld




Click Toolbox.





Under Common Controls, drag-n-drop TextBox onto Form1.

In the Properties tab for textBox1,



Click on Form1, then F7 to show Form1.cs

Add a line to the Form1 constructor:



F5 to run HelloWorld project.



Now, we add more controls to the form. Click Toolbox again.

Under Common Controls, drag-n-drop a single-line TextBox onto Form1

Drag-n-drop Button onto Form1. The method ShowMsg_Click will be created in Form1.cs.
We add some extra code to accept text from textBox2 and append it to textBox1.
We also need to detect if an ENTER was used to terminate the text input.



F5 to run.
Type some text into textBox2 and click Show Message button or press ENTER.



Create Hello File DOS Application

New Project -> Console Application

Name: HelloFile



Then we add some code to write an input line 10 times to HelloFile.txt, read the file back and display the lines on the console.


F5 to run.