Please solve Qustion 11 to 17 In Visual basicSolution31stbox
Please solve Qustion 11 to 17 In Visual basic
Solution
3)1stbox.Items.Clear(); : This option will cause the rebound data to be appended to the existing list which will not be cleared prior to binding.
4)1stbox.Items.RemoveAt(0); To remove an item from index 0
5)1stbox.Items.Remove(\"Math\") ; It will remove the item math
6)1stbox.Items.Add(\"Law\") ; It will add the item law
7) 1stbox.Items.RemoveAt(1stBox.SelectedIndex); It will remove the item in the 1stbox which is currently selected
8) 1stbox.Items.RemoveAt(1stBox.Items.Count -1 ); It will delete the last element
9)1stBox.Sorted=true Access the results of the overridden Sort method by setting the Sorted property to true. When adding items to a ListBox, it is more efficient to sort the items first
10) checks if the list contains the element english
11) 1stBox.Items.Selected[1]=true
12)1stBox.Items.Remve(\"drama\");
13
14)Text,dropDown button and dropDown list
15) both requires an handler event.Both requires a selection event
16) return the last element
