Easy Tips Discussion and Entertainment Forum
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.....

Easy Tips Discussion and Entertainment Forum

Portal­Home­FAQ­Search­Register­Log in
Want to participate in our discussion? Just Login OR Register and start...
Hey Guest Welcome to EziTips.Com We hope, you will enjoy your stay with us...





Post new topic   Reply to topicShare | 
 

 [TUT]Visual Basic 6.0 - Calculator

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


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

PostSubject: [TUT]Visual Basic 6.0 - Calculator   Wed Mar 31, 2010 6: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.


2. Put 3 Text Box in your form.


3. Put 4 Command Buttons in your form and change it's captions to MDAS.


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 of this forum:You cannot reply to topics in this forum
Easy Tips Discussion and Entertainment Forum :: General Section :: Articles-
Post new topic   Reply to topic