摘要:
首先设置ListBox的DrawMode为非默认风格,并设置DrawItem事件,如下: /// <summary> /// Listbox文字交替样式 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void listBox1_DrawItem(object sender, DrawItemEventArgs e) { e.DrawBackground(); Brush myBrush = Brus 阅读全文