Page 89 - Computer Class 08
P. 89

Read the given steps to enter the above buttons in the Form1 window as they are shown in

             the picture above:
                                                          2.  Enter the following code:

             1.  Double-click on the                           Add = Val ( Text1.Text) + Val(Text2.Text)
                  Command button to enter the                  Label4.Caption = Add

                  code.



                                                                               3


             3.  Click on the                            1
                  Start button to
                  run the
                  program.








                                                                                2












              We will get the following output:





                                                                           First Number         :    Enter the first
                                                                                                     number.

                                                                           Second Number  :          Enter the
                                                                                                     second
                                                                                                     number.

                                                                           Result               :    Click to get the
                                                                                                     result.
                                                                           The result will be displayed in the Add

                                                                           box.







                                                                                    Computer-8              89
   84   85   86   87   88   89   90   91   92   93   94