M
MonkeeFace
Hi,
With every click on Button1 i want to change (increase) number written on
it, and i try to do it with this simple code:
private void Button1_Click(object sender, System.EventArgs e)
{
string a=u.ToString();
Button1.Text=a;
u=u+1;
}
With first click i get initial value "0" written on Button1, but with next
clicks nothing changes: "0" stays all the time...
Why? Must I do some "refreshing" or what? Please help...
Thanks.
With every click on Button1 i want to change (increase) number written on
it, and i try to do it with this simple code:
private void Button1_Click(object sender, System.EventArgs e)
{
string a=u.ToString();
Button1.Text=a;
u=u+1;
}
With first click i get initial value "0" written on Button1, but with next
clicks nothing changes: "0" stays all the time...
Why? Must I do some "refreshing" or what? Please help...
Thanks.