回复 7楼 ZHRXJR
程序代码:
Private Sub Form_Load()
Form3.Image4.Picture = Form2.Image7.Picture
Form3.Image1.Picture = Form2.Image8.Picture
Form3.Image2.Picture = Form2.Image10.Picture
Form3.Image3.Picture = Form2.Image12.Picture
Form3.Image5.Picture = Form2.Image14.Picture
Form3.Image6.Picture = Form2.Image16.Picture
Form3.Image7.Picture = Form2.Image18.Picture
Form3.Image8.Picture = Form2.Image20.Picture
Form3.Image9.Picture = Form2.Image20.Picture
Form3.Image10.Picture = Form2.Image22.Picture
Form3.Image11.Picture = Form2.Image24.Picture
Form3.Image12.Picture = Form2.Image26.Picture
Form3.Image13.Picture = Form2.Image28.Picture
Form3.Label5.Caption = Date
Form3.Label6.Caption = Time
rs1.Open "Select * From 注册 Where 用户='" & YHMC & "' and 密码='" & YHMM & "'", cn, 2, 3
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form3.Image1.Picture = Form2.Image8.Picture
Form3.Image2.Picture = Form2.Image10.Picture
Form3.Image3.Picture = Form2.Image12.Picture
Form3.Image5.Picture = Form2.Image14.Picture
Form3.Image6.Picture = Form2.Image16.Picture
Form3.Image7.Picture = Form2.Image18.Picture
Form3.Image8.Picture = Form2.Image20.Picture
Form3.Image9.Picture = Form2.Image20.Picture
Form3.Image10.Picture = Form2.Image22.Picture
Form3.Image11.Picture = Form2.Image24.Picture
Form3.Image12.Picture = Form2.Image26.Picture
Form3.Image13.Picture = Form2.Image28.Picture
End Sub
Private Sub Image1_Click()
Form6.Show
Form3.Hide
End Sub
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form3.Image1.Picture = Form2.Image9.Picture
Form3.Image2.Picture = Form2.Image10.Picture
End Sub
Private Sub Image10_Click()
Form3.Hide
Form4.Show
End Sub
Private Sub Image10_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form3.Image10.Picture = Form2.Image23.Picture
End Sub
Private Sub Image11_Click()
Form9.Show
Form3.Hide
End Sub
Private Sub Image11_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form3.Image11.Picture = Form2.Image25.Picture
End Sub
Private Sub Image12_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form3.Image12.Picture = Form2.Image27.Picture
End Sub
Private Sub Image13_Click()
Form3.Hide
Form1.Show
Form1.Text1.Text = ""
Form1.Text2.Text = ""
Form1.Text1.SetFocus
End Sub
Private Sub Image13_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form3.Image13.Picture = Form2.Image29.Picture
End Sub
Private Sub Image2_Click()
Form7.Show
Form3.Hide
End Sub
Private Sub Image2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form3.Image2.Picture = Form2.Image11.Picture
'Form3.Image1.Picture = Form2.Image8.Picture
End Sub
Private Sub Image3_Click()
Form5.Show
Form3.Hide
End Sub
Private Sub Image3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form3.Image3.Picture = Form2.Image13.Picture
End Sub
Private Sub Image4_Click()
End
End Sub
Private Sub Image5_Click()
Form6.Show
Form3.Hide
End Sub
Private Sub Image5_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form3.Image5.Picture = Form2.Image15.Picture
End Sub
Private Sub Image6_Click()
Form6.Show
Form3.Hide
End Sub
Private Sub Image6_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form3.Image6.Picture = Form2.Image17.Picture
End Sub
Private Sub Image7_Click()
Form8.Show
Form3.Hide
End Sub
Private Sub Image7_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form3.Image7.Picture = Form2.Image19.Picture
End Sub
Private Sub Image8_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form3.Image8.Picture = Form2.Image21.Picture
End Sub
Private Sub Image9_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Form3.Image9.Picture = Form2.Image21.Picture
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
End Sub
Private Sub Timer1_Timer()
Form3.Label5.Caption = Date
Form3.Label6.Caption = Time
End Sub