1
我有一個下拉框,其中有些項目比其他項目更受歡迎,我希望那些在組合框顯示時具有不同的背景顏色(例如Color.Yellow
)擴大。我看到BackColor
,但有沒有辦法將背景顏色應用於單個項目?突出顯示組合框中的某些選項
編輯:感謝Astander的帶動下,這裏是我如何解決它:
Dim item = CType(e.Item, ImageComboBoxItem) If item.Value.Popular Then e.Appearance.BackColor = Color.Yellow End If
感謝領導!我已經概述了我在問題中做了什麼,但我認爲你的答案是「答案」:) – 2010-04-06 23:23:55