你只要写一下drawitem事件
private void comboBox1_DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e)
{
try
{
Graphics a=e.Graphics;
Rectangle b=e.Bounds;
a.FillRectangle(new SolidBrush(Color.Yellow),b);
a.DrawImage(imageList1.Images[0],b.Left ,b.Top);
a.DrawString(comboBox1.Items[e.Index].ToString(),e.Font,new SolidBrush(Color.Green),b.Left+20,b.Top);
e.DrawFocusRectangle();
}
catch{}
}

解决方案 »

  1.   

    可以这样:
    private void comboBox3_DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e)
    {
    Graphics g = e.Graphics ;
    Rectangle r = e.Bounds ;
    Size imageSize = imageList1.ImageSize;
    Font fn = null ;
    if ( e.Index >= 0 )
    {
    fn = (Font)fontArray[0];
    string s = (string)comboBox3.Items[e.Index];
    StringFormat sf = new StringFormat();
    sf.Alignment = StringAlignment.Near;
    if ( e.State == ( DrawItemState.NoAccelerator | DrawItemState.NoFocusRect))
    {
    //画条目背景
    e.Graphics.FillRectangle(new SolidBrush(Color.Red) , r);
    //绘制图像
    imageList1.Draw(e.Graphics, r.Left, r.Top,e.Index);
    //显示字符串
    e.Graphics.DrawString( s , fn , new SolidBrush(Color.Black), r.Left+imageSize.Width ,r.Top);
    //显示取得焦点时的虚线框
    e.DrawFocusRectangle();
    }
    else
    {
    e.Graphics.FillRectangle(new SolidBrush(Color.LightBlue) , r);
    imageList1.Draw(e.Graphics, r.Left, r.Top,e.Index);
    e.Graphics.DrawString( s , fn , new SolidBrush(Color.Black),r.Left+imageSize.Width ,r.Top);
    e.DrawFocusRectangle();
    }
    }
    }