Solved:
You guys are the best!
I took al the content of goyouidiot_Click
and made it into a method called displayResult
, and then:
private void t1_TextChanged(object sender, EventArgs e)
{
displayResult();
}
How didn't i thought of that before? lol, thx
here is original messege:
No lone ago i built a little software that calculates an averege of 15 numbers. The code starts to run when the buttun is clicked, but i want to put this code in an infinate loop that starts to run with program, so the answer will be auto updated. this is my code:
private void goyouidiot_Click(object sender,
EventArgs e) { . . . . }
and those who havn't understood:
I have 15 text-boxs, and I want the method to run when the text boxs' content changes.