Hey guys,
I've got a combo box where I'm passing values to the ComboBox using a
listitem class I created. I use the listitem class to do three things:
1 - Send the display text (What you see in the pull down)
2 - Send the GUID of the item (hidden)
3 - Send the color that the item will be displayed in in the drop down.
I use the following code to do this in my OnDrawItem even:
String drawString =
this.cBxPlayerList.Items[e.Index].ToString();
Font drawFont = new Font("Veranda", 10, FontStyle.Bold);
aColor =
((ListItemSC)this.cBxPlayerList.Items[e.Index]).SelColor;
SolidBrush drawBrush = new SolidBrush(aColor);
PointF drawPoint = new PointF(e.Bounds.X, e.Bounds.Y);
e.Graphics.DrawString(drawString, drawFont, drawBrush,
drawPoint);
cBxPlayerList.AutoCompleteMode =
AutoCompleteMode.SuggestAppend;
Here is my problem, ever since doing this... the cursor / highlight on the
drop-down list is gone, and AutoComplete no longer works. Any idea?
Thanks!!!