7
我想將html顏色(例如#FFFFD2或RGB 255,255,210)轉換爲等效的畫筆顏色。我在listbox_drawitem事件中做了這個。見示例代碼我使用,我是從網上找來的,它的擊打不working.I要畫列表項的背景與此顏色,但項目的背景被漆成白色將html或rgb顏色轉換爲system.drawing.brush
dim col as string = "#FFFFFF"
Dim myBrush as Brush = new SolidBrush(Color.FromARGB(Integer.Parse(col.Substring(1), System.Globalization.NumberStyles.HexNumber)))
任何人可以幫助?
感謝您的回答 – Smith 2011-03-17 11:00:11