gcr15价格2017:VB问题!

来源:百度文库 编辑:神马品牌网 时间:2024/04/28 08:51:12
text1 用户名
text2 密码
Command1 登陆
Timer1
Timer2
我需要以下控件来实现

让输入合法用户名和密码时点登陆就 运行 Timer1
如果用户输入用户名和密码不合法点登陆就运行 Timer2

首先你需要判断:

private sub command1_click()
if text1.text=正确的用户名 and text2.text=正确的密码 then
timer1.enabled=true
else
timer2.enabled=true
endif
end sub