Creating a simple calculation program (Addition)
Before you continue with this tutorial, you should have checked the Previous
To create a calculation program all you have to do this use your previous knowledge. The steps to follow are:
- Open your IDE (Integrated Development Environment).For this tutorial we will be using Visual Basic 2010 Express or Visual Studio 2010
- Click on new project
- Select Visual Basic and then new windows application(in Visual Studio ) or New windows Application in Visual Basic 2010 express.
- Rename your project. (You are free to give it any name you like.). Click on okay. This brings you to Form 1(as default name ). You can change this name in the properties box to "Addition of two numbers" or "simple calculator "
- From your Toolbox drag the following :
- Button (1)
- Text Box (2)
- Labels (4)
After dragging them remain accordingly.... your application should look like this:

- Move to the Solution Explorer and click on view code to open the coding area or double click on the Button.
- Type in the code below.
- Run your program having done all the above....
- You should have your application similar to this after inputting values.
No comments:
Post a Comment