Please solve it in Visual Basic e2 Univers K1 of 27 Hstory M

Please solve it in Visual Basic

e2 Univers K1 of 27 Hstory Math Drama CIS

Solution

/*in this TextBox control the form,ColorName variable contains a value before we asssign it ot the BackColor
When the form opens, click an item in the list box to see the selected color displayed in the text box.
*/
1)
Dim ColorName As String = CStr(ListBox1.SelectedItem)

If ColorName IsNot Nothing Then
Me.TextBox1.BackColor = _
System.Drawing.Color.FromName(ColorName)
End If

-----------------------------------------------------------------------------------------------------------
2)
/*It removes the selected item from the list*/
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles Button1.Click
ListBox1.Items.Remove(ListBox1.SelectedItem)

--------------------------------------------------------------------------------------------------------
4)There are three types of combo boxes

i)-->A simple combo box consists of an edit box with an attached list box. The list of items is always visible.
-->When you need to select an item, you can either navigate within the combo box control using keyboard shortcuts,
or type the item\'s caption. A simple combo box allows you to type any text. If the typed caption corresponds to
any of the combo box items, this item will be selected.
ii)-->A drop-down list box consists of a static text box that represents the currently selected item, and a drop-down list
representing a list of items.
-->When working with a drop-down list box, you can only select from the list of predefined items.
-->A drop-down list box supports incremental search. This means that the control will search for the item while you are typing,
and if the typed text corresponds to any of the items, the corresponding item will be selected.
iii)-->A drop-down combo box combines a drop-down list with an edit box, thus you can either type an item\'s text or select an
item from the drop-down list.
--> You can type any text. If it corresponds to any of the combo box items, this item will be selected.

Please solve it in Visual Basic e2 Univers K1 of 27 Hstory Math Drama CIS Solution/*in this TextBox control the form,ColorName variable contains a value before

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site