A clever person solves a problem. A wise person avoids it.
- Einstein
News
Site News
Latest Comments
Affiliates
Proxies
Contribute!
Tutorials
Newest Articles
Most Popular
Highest Rated
Latest Comments
Code Samples
Newest Code
Most Popular
Highest Rated
Latest Comments
Blogs
Admins Blog
Newest Blogs
Most Popular
Highest Rated
Latest Comments
Forums
Latest Posts
Latest Topics
Memberlist
[login]
|
[Register]
Adder
by: bs0d
Description:
There is nothing special to this program. All it does is show you how to add two numbers from textboxes. This is recommended for the beginners learning Visual Basic 6.0. - (1 label, 2 txt boxes and 3 buttons).
See Full Size
Code:
Private Sub cmdCalculate_Click() 'Will Calculate the equation lblAns = Val(txtNum1) + Val(txtNum2) End Sub Private Sub cmdClear_Click() 'Will Clear the two text boxes, and 'Move the cursor back up to the first 'Text box. txtNum1 = "" txtNum2 = "" lblAns = "" txtNum1.SetFocus End Sub Private Sub cmdExit_Click() 'Will end the program End End Sub
No Comments for this page.
You Must be
signed in
or a
member
to comment.
Code Stats
2,960
Views
0
Total Comments
0
Rating of 5 (
1
Votes)
Code Options
·
Login to Rate This Code
·
Login to Post a Comment
·
Read more by this author
Related
·
RGB Color Fader
·
Math Problems
·
Cut and Paste
·
Combo Box Colors
·
Flag Viewer
Personal Loans
-
Loans
-
Debt Consolidation
-
Credit Counseling
"AllSyntax.com" Copyright © 2002-2007; All rights lefted, all lefts righted.
Privacy Policy
|
Internet Rank