C# Window ComboBox highlight Default Text Displayed
Hi,
I have a comboBox and it was a number of values. On Form_Activated event I will pick the first item in the comBoBox and assigned it to ComBoBox.Text (default Text displayed). Afte that I need to highlight the default text display with a color so that user can see that the text is selected.
Example:
dialedNumberComboBox.Focus();
if (dialedNumberComboBox.Items.Count > 0)
{
dialedNumberComboBox.Text = (dialedNumberComboBox.Items[0]).ToString();
// Here I need to highlight the text in dialedNumberComboBox.Text
}
Thanks.