How to have a multi-coloured items of a ListBox in winforms?
问题 I am developing a software in winforms, I am stuck in a step where I have List<KeyValuePair<string, string>>. and some sample data: List <KeyValuePair<"S", "1200">> List <KeyValuePair<"S", "1300">> List <KeyValuePair<"L", "1400">> I want to diplay the value of the key pair inside a ListBox, where based in the key of the pair the Item on the ListBox has a diffrent colour, for example if the Key is S, then the Item should be red and if the Key is L the Item should be blue. Hope you could help