What is a combo box? List the three styles of combo boxes available in Visual Basic.
What will be an ideal response?
A combo box is similar to a list box, and it allows the user to select from a list of choices. However, the list can be hidden. The list can also contain a text field that may or may not be editable by the user. The three styles of combo boxes are:
1. Simple
2. DropDown
3. DropDownList
You might also like to view...
Modify the application you developed to keep track of multiple table bills at the same time. Sample outputs are shown in Fig. 26.44. The user should be able to calculate a bill for a table and save that table’s subtotal and waiter’s name. The user should also be able to retrieve that informa- tion at a later time. [Hint: The restaurant2 database contains two tables, one for the menu items, as before, and another (restaurantTables) for all the tables in the restaurant. The restaurantTables table (Fig. 26.45) has three columns—tableNumber, subtotal and waiterName. The values in the tableNumber column are ints. The values in the subtotal column are doubles. The values in the waiterName column are Strings.]
a) Copying the template to your working directory. Copy the C:Examples Tutorial26ExercisesRestaurantBillCalculatorEnhanced directory to your C:SimplyJava directory.
b) Copying the database to your working directory. Copy the restaurant2 database directory from C:ExamplesTutorial26ExercisesDatabases to your C:Sim- plyJavaRestaurantBillCalculatorEnhanced directory.
c) Opening the template file. Open the RestaurantBillCalculator.java file in your text editor.
d) Adding code to the loadTableNumbers method. Find the loadTableNumbers method, which immediately follows createMenuItemsJPanel. In the loadTable- Numbers method, add a statement that queries the database and retrieves the table- Number column from the restaurantTables table. Insert a loop that processes the ResultSet and adds each table number to the tableNumbe
A white space between side-by-side columns can be set up using which of the following?
A. the left margin of the left column B. the right margin of the right column C. the right margin of the left column D. none of the above
Victor is working on a worksheet and realizes that he has entered incorrect information in a column. He selects the entire column and clicks the Delete button in the Cells group on the Home tab. Which of the following happens when Victor clicks the button?
A. ?The entire column will be deleted. B. ?The first cell of the selection will be deleted. C. ?The data in the first cell will be cleared. D. ?The data in the entire column will be cleared.
The for statement provides a single place for all expression-altering statements.
Answer the following statement true (T) or false (F)