Page 77 - Open Soource Technologies 304.indd
P. 77

Unit 3: Understanding Controls and Control Events








































                 As you can see, it is fairly simple to load the ListBox and the ComboBox during the
                 From_Load event. The only other detail to note is that the order in which the items appear
                 in the Combo is not the same as the order in which the items were added. That is intentional
                 - it is done with the  Sorted property for the ComboBox. It can also be done for the ListBox.
                 Questions

                  1. Create a form with two buttons, run the program, and click on each button. Do you notice
                    anything different about a button after it has been clicked?
                  2. While a program is running, a control is said to lose focus when the focus moves from
                    that control to another control. In what three ways can the user cause a control to lose
                    focus?


               3.7 Summary

                  • Discus design aspects of VB forms develop environment with all the important points
                    labeled.
                  • User interface provides mechanism for end users to interact with the application, end user
                    are called the target audience.
                  • Control is an object that can be drawn on to the form to enable or enhance user interaction
                    with the application.
                  • Form load event in which you can load and display the event into a particular form.


                                      LOVELY PROFESSIONAL UNIVERSITY                         71
   72   73   74   75   76   77   78   79   80   81   82