home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmScreenSaver
- Appearance = 0 'Flat
- BackColor = &H00000000&
- BorderStyle = 0 'None
- ClientHeight = 3030
- ClientLeft = 4605
- ClientTop = 2955
- ClientWidth = 3870
- Height = 3435
- Icon = "frmSS.frx":0000
- Left = 4545
- LinkTopic = "Form1"
- ScaleHeight = 202
- ScaleMode = 3 'Pixel
- ScaleWidth = 258
- ShowInTaskbar = 0 'False
- Top = 2610
- Width = 3990
- WindowState = 2 'Maximized
- Begin VB.Timer Timer1
- Interval = 1000
- Left = 120
- Top = 180
- End
- Attribute VB_Name = "frmScreenSaver"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
- EndScreenSaver
- End Sub
- Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- EndScreenSaver
- End Sub
- Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Static OldX As Integer
- Static OldY As Integer
- If (OldX > 0 And OldY > 0) And (Abs(X - OldX) > 5 Or Abs(Y - OldY) > 5) Then
- EndScreenSaver
- End If
- OldX = X
- OldY = Y
- End Sub
- Private Sub Timer1_Timer()
- Dim X1, Y1, X2, Y2 As Integer
- Randomize
- X1 = Rnd * (ScaleWidth - 1) + 1
- Y1 = Rnd * (ScaleHeight - 1) + 1
- X2 = Rnd * (ScaleWidth - 1) + 1
- Y2 = Rnd * (ScaleHeight - 1) + 1
- ForeColor = RGB(Rnd * 255 + 1, Rnd * 255 + 1, Rnd * 255 + 1)
- Line (X1, Y1)-(X2, Y2), , BF
- End Sub
-