3
Answers

Why will this line not fire??


I am new to the C# language and for the life of me I cannot figure out why this line will not fire when the three array tags match. Can someone help me out?
 

if
((btn[0].Tag == btn[1].Tag) && (btn[1].Tag == btn[2].Tag))
{
//DisplayTheWinner()
btn[0].BackColor =
Color.Red;
btn[1].BackColor =
Color.Red;
btn[2].BackColor =
Color.Red;
 

Thank you,
Jonathan Voeltner
Answers (3)
1
Nilesh Shah

Nilesh Shah

NA 22.3k 214.8k 7y
at least specify some details in your question.
 
what do you want?
 
if you yourself dont show interest in your question, who else will?