
1. Translate algorithm into C#
2. Open Microsoft Visual Studio
- Click on the desktop icon
OR Click Start menu and find
3. New Project / C# / Windows Forms Application
- Enter Name for Project [HelloWorld] - (Note location and change if needed!)
4. Add controls from the toolbox! (Button, TextBox, Label, etc.. )
5. Write Code that Responds to an event such as ButtonClick

private void button1_Click(object sender, EventArgs e)
{
int x = 1;
DialogResult r;
MessageBox.Show( "Hello World!",
"Greeting",
MessageBoxButtons.YesNoCancel,
MessageBoxIcon.Warning );
r = MessageBox.Show( x.ToString(), "" ,
MessageBoxButtons.YesNoCancel );
if (r == DialogResult.Yes)
this.Dispose();
}
Only use "SAVE ALL" when saving your project!
6. Build / Build Solution compiles the program
- If no syntax errors, message on status bar "Build Succeeded"
- 'Error List' window opens at bottom if there are syntax errors
7. Executing your newly compiled code:
- Ctrl-F5 runs the code NODEBUG (to add button: 'Tools/Customize')
- Debug / Start Debugging - executes the code
8. Check now for LOGIC ERRORS