the combobox having a list like below
Red
Blue
Green
White
Black
When that item is selected, the forecolor show on the combo box is the text color.
below are some of my code...
============================================
6: For i As Integer = 0 To _Color.Items.Count - 1
7: Dim item As New Telerik.WinControls.UI.RadComboBoxItem()
8: Dim fillElement As Telerik.WinControls.Primitives.FillPrimitive = DirectCast(item.Children(0), Telerik.WinControls.Primitives.FillPrimitive)
9: fillElement.BackColor = _Color.Item(i).CoverColor
10: fillElement.BackColor2 = _Color.Item(i).CoverColor
11: fillElement.BackColor3 = _Color.Item(i).CoverColor
12: fillElement.BackColor4 = _Color.Item(i).CoverColor
item.ForeColor = _Color.Item(i).FontColor
13: item.Text = _Color.Item(i).Name
14: item.Value = _Color.Item(i).Index
15: _cboCTRL.Items.Add(item)
16: Next
Private Sub _ComboColor_SelectedValueChanged(ByVal sender As Object, ByVal e As EventArgs) Handles _cboCoverColor.SelectedValueChanged
1: Dim item As RadComboBoxItem = DirectCast(_cboCoverColor.SelectedItem, RadComboBoxItem)
2: If item Is Nothing Then
3: Return
4: End If
_cboCoverColor.ForeColor = item.ForeColor
End Sub
================================================
but seems like no luck... i only manage to change the drop down text to the color I would like it to be, but, not the text color while it's selected.
Please advice.