- Private Sub Command1_Click()
- If Text1.Text = "zxc5154814" And Text2.Text = "zxc5154814" Then
- MsgBox ("欢迎进入本系统!")
- Form1.Hide
- Form2.Show
- Else
- MsgBox ("用户名或密码错误")
- End If
- End Sub
- Private Sub Command2_Click()
- a = MsgBox("确定要退出本系统吗?", 3 + 32 + 256, "系统提示!!")
- If a = 6 Then
- Unload Me
- End If
- End Sub
- Private Sub Command1_Click()
- Command1.Caption = "继续"
- Timer1.Enabled = True
- Command1.Enabled = False
- Command2.Enabled = True
- End Sub
- Private Sub Command2_Click()
- Timer1.Enabled = False
- Command2.Enabled = False
- Command1.Enabled = True
- End Sub
- Private Sub Form_Load()
- Command1.Caption = "开始"
- Command2.Caption = "停止"
- Timer1.Interval = 50
- Timer1.Enabled = False
- Label1.Caption = ""
- Label1.AutoSize = True
- Label1.FontSize = 16
- Label1.FontBold = True
- End Sub
- Private Sub Timer1_Timer()
- If Label1.Left < Width Then
- Label.Left = Label1.Left + 20
- Else
- Label.Left = 0
- End If
- End Sub
复制代码
|