please solve it in Visual Basic Show code to make second item in list be highlig
ID: 3928631 • Letter: P
Question
please solve it in Visual Basic
Show code to make second item in list be highlighted: Show code to remove "Drama" If I had a combobox with the 50 states in it (in alpha order) that involved scrolling what could I type to quickly get to "South Carolina"? What are the three modes of use for a ComboBox? and (c) DropDownList. What is the default event associated with both listboxes and comboboxes? What does it mean if we use MyListBox.Selectedlndex and it returns a -1 to us? In Visual Studio in the design mode what is the image on the icon that we click to have VS show us the events associated with the currently selected component?Explanation / Answer
11) ListBox.Selected(1) = True
True à list box item is selected
False à list box item is not selected
1 is for the second index position.
12) ListBox.SelectedIndex = “Drama”
ListBox.Items.Remove(ListBox.SelectedItem)
Or
ListBox.Items.Remove(ListBox.SelectedItem)
13) You can use the TextChanged event is raised every time the text changes for any reason.
When the text-entry portion is modified it will trigger.
14) a) Drop-down combo box à constant is vbComboDropDown or (0)
b) Simple combo box à constant is vbComboSimple or (1)
c) Drop-down list box à constant is vbComboDropDownList or (2)
15) For combobox: DropDown
For listbox: Click
16) If no item is selected from the MyListBox
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.