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.
- Untick 2 options at bottom left corner.
- Tools -> Settings -> tick Expert Settings
- Tools -> Options -> Show all settings
- Tools -> Environment
Startup -> load last loaded solution
- Tools -> Text Editor -> C#
tick line numbers
- Click Toolbox, drag and position over center of pane selector in Solution Explorer.
View -> Properties Window
View -> Output
View -> Error List
- Remove unecessary buttons from Standard Toolbar
View -> Toolbars -> Debug
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,
- set Multiline=True
- set ScrollBars=Vertical
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.
- set Name=ShowMsg
- set Text=Show Message
- Click Events button.
Select the Click event and doubleclick the method field.
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.