c# - How can I get a Color from a list of KeyValuePair? -
i have button: btn, , i'm trying
private list<keyvaluepair<string,color>> mylistkeyvaluepair = new list<keyvaluepair<string,color>> btn.backcolor = color.(mylistkeyvaluepair[i].value);
but says, 'identificator expected'.
if have color in name/value pair, set color value.
btn.backcolor = mylistkeyvaluepair[i].value;
Comments
Post a Comment