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

Event Driven Programming



                            8. Give names of those controls which can function as bound controls.
                                (a) Labels                  (b) Text boxes
                                (c) List boxes              (d) All of the above.

                            9. Path to the database is specified through the value in the connecting string
                                (a) Provider=SQLNCLIB.      (b) AttachDBFileName
                                (c) MSHFlexGrid             (d) All of the above.

                           10. SQL Express also includes an administrative tool known as Express Manager
                                (a) False                   (b) True

                          10.9  Review Questions

                            1. What is the default property of data control?

                            2. What are two validate with Data Control?
                            3. Name some advantages of stored procedures over inline SQL statements.
                            4. What keyword begins a SQL statement to retrieve records?
                            5. Give the name and brief on those controls which can function as bound controls.

                            6. Explain data control’s Database  and Recordset  properties.
                            7. What is MSHFlexGrid? Explain with suitable examples.

                            8. Explain some useful TextBox Validations.
                            9. How do I use charts in Visual Basic?
                           10. How do I display pictures using a ListBox?
                           11. How do I add pictures to menu items?

                           12. How do I change one colour to another in a picture?
                           13. How do I resize MDI Child Forms?
                           14. How to bind two controls to the same DataTable without having changes in one control
                               also change the other control?

                          Answers for Self Assessment Questions

                               1. (c)              2. (d)               3. (c)              4. (a,  d)
                               5. (a)              6. (b)               7. (b)              8. (d)
                               9. (b)             10. (b)









                          242                    LOVELY PROFESSIONAL UNIVERSITY
   243   244   245   246   247   248   249   250   251   252   253