Cannot implicitly convert type 'int' to 'bool'
-
int var = 0; int one = 1; int six = 6; hurt =+ one; if (var = six) label1.Text = "text.."; I am kinda new to this... I want to make it so when you click on a button, var increses in value and when it finally reaches 6, to close the program. I know what I have is no where close to 'right' or even the easiest way, it's just easier for me to understand. Thanks Hengy I like Pie
-
int var = 0; int one = 1; int six = 6; hurt =+ one; if (var = six) label1.Text = "text.."; I am kinda new to this... I want to make it so when you click on a button, var increses in value and when it finally reaches 6, to close the program. I know what I have is no where close to 'right' or even the easiest way, it's just easier for me to understand. Thanks Hengy I like Pie