This section will introduce you to the Complete Programs tutorial series, the tutorial, creating the project, and adding controls. This project is meant for beginners, so the program will not be as complicated as the others. The program will be similar to the basic calculator in windows.

The C# Complete Program tutorials, similar to the XNA Complete Games, cover programs from start to finish. We start off with a very simple program, and get more advanced as we go. This program is a very simple calculator. We will cover a very abstract way to handle button presses and operations.

It is time to get started! Open Visual Studio 2008 (or the express editions) and create a new C# Windows Forms Application called “BasicCalculatorTutorial”. The first thing you need to do is change the dimensions of the window to something a bit wider. Change the Size property of the form to a new dimension. I used the following: 350, 277. Change the Text property of the form to identify the program, “BasicCalculator”. You can rename Form1.cs if you wish; I will not do that in the tutorial. This will be our base window, and we will add new controls in part 3.

Download pdf C# Series: Basic Calculator