主题:求助:无法将类型“int”隐式转换为“bool”
private void timer1_Tick(object sender, System.EventArgs e)
{
int tm01=0;
this.timer1.Enabled = true ;
this.timer1.Interval = 1000 ;
tm01 = tm01 + 1;
[color=FF0000]if (tm01 = 300)[/color]
{
tm01 = 0;
Myrec.Edit();
Myrec.Fields[1].Value=txtName.Text;
Myrec.Update(1,false);
}
}
{
int tm01=0;
this.timer1.Enabled = true ;
this.timer1.Interval = 1000 ;
tm01 = tm01 + 1;
[color=FF0000]if (tm01 = 300)[/color]
{
tm01 = 0;
Myrec.Edit();
Myrec.Fields[1].Value=txtName.Text;
Myrec.Update(1,false);
}
}