dostibook
Please Login to this website. After you Login, You can post topics of your choice in this website and replies to any existing topic you like in this website. So do a Login by clicking the "Log in" button below and start posting.....

If you are not registered, then click "Register" button below to register yourself and then Login.....
dostibook
Please Login to this website. After you Login, You can post topics of your choice in this website and replies to any existing topic you like in this website. So do a Login by clicking the "Log in" button below and start posting.....

If you are not registered, then click "Register" button below to register yourself and then Login.....
dostibook
Would you like to react to this message? Create an account in a few clicks or log in to continue.

dostibook


 
PortalHomeSearchLatest imagesRegisterLog in






Share | 
 

 [TUT]Visual Basic 6.0 - Calculator

View previous topic View next topic Go down 
AuthorMessage
Justin_Romile
VIP Member
VIP Member
Justin_Romile

Male
Leo
Posts : 272
Reputation 8
Join date : 2010-03-29
Age : 29
Location : Antipolo City, Philippines
Job/hobbies : Anything related to computers.

[TUT]Visual Basic 6.0 - Calculator Vide
PostSubject: [TUT]Visual Basic 6.0 - Calculator   [TUT]Visual Basic 6.0 - Calculator Icon_minitimeWed Mar 31, 2010 9:44 pm

This article will show you how to make a simple calculator using Visual Basic 6.0 or Visual Basic 8.0. This tutorial also supports Visual Basic 2008. So to start, just follow this simple steps:

1. In Visual Basic, make a new StandardEXE.
[TUT]Visual Basic 6.0 - Calculator Standard

2. Put 3 Text Box in your form.
[TUT]Visual Basic 6.0 - Calculator 3TextBox

3. Put 4 Command Buttons in your form and change it's captions to MDAS.
[TUT]Visual Basic 6.0 - Calculator 4CommandButton

4. This is the coding for Addition:
Code:
Val(Text3.Text) = Val(Text1.Text) + Val(Text2.Text)

5. This is the coding for Subtraction:
Code:
Val(Text3.Text) = Val(Text1.Text) - Val(Text2.Text)

6. This is the coding for Multiplication:
Code:
Val(Text3.Text) = Val(Text1.Text) * Val(Text2.Text)

7. This is the coding for Division:
Code:
Val(Text3.Text) = Val(Text1.Text) / Val(Text2.Text)

8. Congratulations! Now you can run your work.
Back to top Go down
 

[TUT]Visual Basic 6.0 - Calculator

View previous topic View next topic Back to top 
Page 1 of 1






Permissions in this forum:You cannot reply to topics in this forum
dostibook :: General Section :: Articles-
Free forum | ©phpBB | Free forum support | Report an abuse | Forumotion.com