版主的是对的,把最后end if 拉开距离就可以运行了。
放在text1_change吹糠见米,跟着输入变化
if val(Text1.text)>0 then LabeI1.Visible = True LabeI2.Visible = False LabeI3.Visible = False
else if val(Text1.text)<0 then LabeI1.Visible = False LabeI2.Visible = True LabeI3.Visible = False
else if val(Text1.text)=0 then LabeI1.Visible = False LabeI2.Visible = False LabeI3.Visible = True
end if