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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -