Calculator - Visual Basic 2008
This tutorial will show you how to make a basic
Open Visual Basic 2008 Express Edition.
(If you don't have the program click
here to download it
Click on Project next to Create:
Click on Windows Form Application, and name the project
"Your name's Calculator" and then click Ok.
You can change the form text to "your name's
Click on the form and then go to properties window, then change the text
You also need to disable the maximize control of the
form. That's because you don't want the user to maximize the calculator.
Go to the properties window, and change the maximize box property to
You also need to change the FormBorderStyle property to
Add a button to the form and place on top of the form:
You might be surprised of this button because we should
have placed a textbox instead. Well, this is the cool thing about Visual
Basic 2008, you can use a button to display text and results.
Now we have to change the button properties to look like
a text box.
First we change it's text to "0.".
We align the text to be on the right. Right click on the
button, click on properties. In the properties window change TextAlign
Choose the box in the middle right (the blue one in
the image above)
Change the flat style of the button. In the properties
window change flat style to Flat:
You also need to change the color of the button. Go to
the properties window and change the backcolor property to white:
There is two more properties you need to change: TabStop
to False and Enabled to False.
Your button should look like this now:
If anything doesn't work please comment on page 5
Page: 1 2
C # 2008