
0. Translate algorithm into C#
- Open Microsoft Visual Studio
- Click on the desktop icon
OR Click Start menu and find
- New Project / C# / Windows Forms Application
- Enter Name for Project [HelloWorld] / ok * Note location and change if needed!!

Add a control! (a button)

Write Code that Responds to a ButtonClick

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles Button1.Click
MessageBox.Show("Hello!", "HelloCaption")
End Sub
End Class
- Build / Build helloWorld compiles the program
- If no syntax errors, message on status bar "Build Succeeded"
- 'Error List' window opens at bottom if there are syntax errors
Only use "SAVE ALL" when saving your project!
- Executing your newly compiled code:
- Ctrl-F5 runs the code NODEBUG (to add button: 'Tools/Customize')
- Debug / Start Debugging - executes the code
- Check now for LOGIC ERRORS
|