Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Wednesday, August 10, 2011

VB-94 : Simple Programs(3)

To add 2 numbers






(A)Program Design : 


(B) Property(Controls Used) :
  • 3 Labels with Captions Enter First NumberEnter Second Number and Answer.
  • 3 TextBoxes with Name Text1, Text2 and Text3 , and all of the TextProperty is Blank
  • One Command Button with Name-Command1 , and Caption-Add
(C) Attaching Code to the Object :

Private Sub Command1_Click()
Text3.Text = Val(Text1.Text) + Val(Text2.Text)
End Sub


(D) Output :


(E) Errors :

If found any errors while running your VB program, or want to put your comment about any  program , please click Comment section , to post.


      • ====================================================================
        Back to Home   &  VB
    ===========================================================

    No comments: