CyberiaPC.com Main Page




Learning VB

{1} Starting Visual Basic

Start Visual Basic.  I will be using version 6, so if you have an older version make note that some things might be slightly different.  You will be asked for the project type, choose Standard EXE and click on Open.  Now, the first thing we want to do is organize the layout of our program.  We'll need four labels, two textboxes and six command buttons. 

Labels are graphical controls that contain text, which the user cannot delete.  They are usually used as captions for things such as textboxes.  In this case, we want to use three of the labels to explain to the user how to operate the calculator, and one for the answer (at the very top). 

Textboxes, on the other hand, are controls that can obtain information from the user.  Unlike labels, its text can be changed by the other.  In this project, we'll need just 2 textboxes for the first and second numbers that are to be calculated. 

Command buttons are simply buttons used to begin, end, or interrupt processes.  Here we'll use four command buttons for the operators (+ - / *), one to perform the calculation and one to clear all fields.

{Go To Step 2}