Why will this line not fire??

May 11 2010 7:16 PM

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)