Rhizardhy TutoriaL

;

Program 1 [Add]

by aredie on Jun.15, 2009, under Tutorial


  • enter the 3 labels, text 3, and 3 commandbutton to the form. And set as the image below.

vb4

  • and change the properties of objects similar to this :

vb7

vb3

  • write code for the program, click View > Code

vb5

  • write this code in the Code Window.

Private Sub Cmd1_Click()
Dim a, b, c As Double
a = Text1.Text
b = Text2.Text
c = Val(Text1.Text) + (Text2.Text)
Text3.Text = c
End Sub

Private Sub Cmd2_Click()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
End Sub

Private Sub Cmd3_Click()
End
End Sub

vb6

  • Press F5 to Running the program!!
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogosphere News
  • Live
  • Technorati
  • Twitter

Related Post

:, ,

3 Comments for this entry

Leave a Reply