Page 88 - Computer Class 08
P. 88

Adding Command Button in the Form

             Command button is used to execute the event that is associated with it.

               Let’s
               Let’s  Learn...
                      Learn...
             To add command button in the form.


             1.  Click on the Command
                  button.


             2.  Click and drag the button
                  in the form.                                1
                                                                                   2

             3.  Double-click on the
                  command button to bring
                  the procedure form.
                                                                                  4
             4.  Enter the code in between
                  these lines.








              Now let’s see an example to add two numbers.










                                                                                                      Accept first
                       Label 1                                     Text box                             number
                       Label 2                                      Text box

                       Label 3
                                                                                                      Accept second
                                                                                                         number
                                                                 Command Button
















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