

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CS0004: Written Homework 5 Chapter 9 Due: 04/10/ 9.1 โ 9.
1. List Boxes (assume that the list box is called lstBox) a. How do you determine the number of items in a list box? b. How do you add a new item to a list box? c. How can you find the index of the currently selected item in the list box? d. How can you retrieve the currently selected item from a listbox? 2. Combo Boxes (name: cmbBox) a. How do you get the selected item from a combo box? b. How do you get the index of the currently selected Item? 3. OpenFileDialog control (name: openFileDialog1) a. How do you pop up the open file dialog? b. How do you get the name of the selected file? 4. Picture Boxes (name: picBox) a. How do you add an image from file to the picture box? b. How do you ensure that the image is always stretched or shrunk to fit inside the box? c. How would you set a background color for a listbox? 5. What are group boxes? Why are they important? 6. Check Boxes (name: chkBox) a. What is a check box?
b. How would you determine if a check box has been checked (selected)?
7. Radio buttons (name: radButton) a. How are radio buttons different from check boxes? b. How many radio boxes in a group can be selected at a time? c. How would you test in a program if a radio button has been checked (selected)? 8. What is a Timer in VB? What is it used for and how is it used?