Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Items can be added to a combobox or list during run time using the method a.

ID: 3362354 • Letter: 1

Question

1. Items can be added to a combobox or list during run time using the method a. AddLists b. Lists C. Add.Items d. Items.Add 2. The method is used to send a line of text to the graphics page a. Print b. WriteLine c. String d. DrawString 3. Which event is automatically triggered by the Print method of a PrintDocument a. Printer b. PrintDocument c. PrintPage d. PrintAndPreview What is the value of the Selectedlndex property if the user has selected the last item in a list with four items? 4. C. 5. If you want to be able to use a variable in multiple forms use the following command to create it: a. Dim b. Public c. Friend d. Private

Explanation / Answer

We are allowed to do only 1 question at a time. Please post again for other questions.

Ans:

Items.Add

If the Sorted property of the ListBox is set to true, the item is inserted into the list alphabetically. Otherwise, the item is inserted at the end of the list. To insert an item into the list box at a specific position, use the Insert method. To add a set of items to the list box in a single operation, use the AddRange method. If you want to use the Add method to add a large number of items to the list, use the BeginUpdate and EndUpdate methods to prevent the ListBox from repainting each time an item is added to the list until all items are added to the list. When adding items to a ListBox, it is more efficient to sort the items first and then add new items.