Изменить цвет выделения в WinForms ComboBox
Все, у меня был глубокий взгляд, но я не могу найти то, что я ищу. Я не хочу менять цвет выделения элемента управления ComboBoc (в идеале, без подкласса элемента управления). Я, хотя делать следующее будет работать, но это событие даже не стреляет
private void comboBoxDb_DrawItem(object sender, DrawItemEventArgs e)
{
ComboBox combo = sender as ComboBox;
e.Graphics.FillRectangle(new SolidBrush(combo.BackColor), e.Bounds);
string strSelectionColor = @"#99D4FC";
Color selectionColor =
System.Drawing.ColorTranslator.FromHtml(strSelectionColor);
e.Graphics.DrawString(combo.Items[e.Index].ToString(),
e.Font,
new SolidBrush(selectionColor),
new Point(e.Bounds.X, e.Bounds.Y));
}
но это событие даже не стрельба. Что я здесь не так делаю?
Спасибо за ваше время.
Edit. Although the non firing was caused by not setting the DrawMode property of the ComboBox correctly pointed out by @Teppic, this is still not doing what I require. I want to set the selection color, what I have done above does (I have blocked out names here)
Whereas I want to change the blue highlight ion the control as shown here.