Skip to main content

How to make a Calculator


Calculator  - Visual Basic 2008 / 2010
Part- 1
This tutorial will show you how to make a basic calculator:

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 calculator". Click on the form and then go to properties window, then change the text property.
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 False:

You also need to change the FormBorderStyle property to Fixed3D
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 text box 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 to MiddleRight:
 
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:




Comments

Post a Comment

Popular posts from this blog

Managing a Simple Mailing List

This hour provides the first of several hands-on, small projects designed to pull together your PHP and MySQL knowledge. In this hour, you'll learn the methods for creating a managed distribution list, which can be used to send out newsletters or anything else that you want to send, to a list of email addresses in a database. The mailing mechanism you'll use in this hour is not meant to be a replacement for mailing list software, which is specifically designed for bulk messages. The type of system you'll build in this lesson should be used for only small lists of fewer than a few hundred email addresses. In this hour, you will learn how to Create a subscribe/unsubscribe form and script Create a front end for sending your message Create the script that sends your message Developing the Subscription Mechanism You learned in earlier lessons that planning is the most important aspect of creating any product. In this case, think of the element...

Joomla Video Tutorials-06

Working with Joomla Extensions     6. Joomla Content

PHP course catalogs

Introduction   In this PHP course, you will learn Advanced level PHP with CodeIgniter framework, and how to execute scripts on your server. You will also learn about MySQL, html, CSS, JavaScript. You will also learn advanced level CSS, Database Normalization & Relation of Database. After attending the course, you can develop project using PHP framework CodeIgniter with MySQL. How participants will benefit after the course:   After attending this course, participants will be able to develop professional dynamic website using PHP framework CodeIgniter, design database with proper documentation, and develop Online Payment Method. Course Highlights:   . Complete package on web development  . Advanced JavaScript & Ajax  . PHP framework along with documentation process  . Client Side & Server Side Validation  . CI Framework Reporting  . TinyMce Editor & Searching  . SSL, File upload & Email  . Online Paym...