屏幕保护程序.frm

来自「屏保爱迪生飞屏保爱迪生飞屏保爱迪生飞屏保爱迪生飞屏保爱迪生飞」· FRM 代码 · 共 99 行

FRM
99
字号
VERSION 5.00
Begin VB.Form Form1 
   AutoRedraw      =   -1  'True
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   3105
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3105
   ScaleWidth      =   4680
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin VB.Timer Timer1 
      Interval        =   1000
      Left            =   0
      Top             =   0
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i, j, x As Integer

Private Sub Form_Load()
    Form1.Left = 0
    Form1.Top = 0
    Form1.Height = Screen.Height
    Form1.Width = Screen.Width
    x = 0
    Form1.Visible = False
End Sub

Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, Y As Single)
    End
End Sub

Private Sub Timer1_Timer()
    Form1.Visible = True
    j = Screen.Height / 255
    Select Case x
        Case 0
            'Form1.Cls
            For i = 0 To 255 * j
            Me.Line (0, i)-(Screen.Width, i), RGB(i / j, 255 - i / j, 0)
            Next i
        Case 1
            'Form1.Cls
            For i = 0 To 255 * j
            Me.Line (0, i)-(Screen.Width, i), RGB(0, i / j, 255 - i / j)
            Next i
        Case 2
            'Form1.Cls
            For i = 0 To 255 * j
            Me.Line (0, i)-(Screen.Width, i), RGB(255 - i / j, 0, i / j)
            Next i
        Case 3
            'Form1.Cls
            For i = 0 To 255 * j
            Me.Line (0, i)-(Screen.Width, i), RGB(i / j, 255 - i / j, 255 - i / j)
            Next i
        Case 4
            'Form1.Cls
            For i = 0 To 255 * j
            Me.Line (0, i)-(Screen.Width, i), RGB(255 - i / j, i / j, 255 - i / j)
            Next i
        Case 5
            'Form1.Cls
            For i = 0 To 255 * j
            Me.Line (0, i)-(Screen.Width, i), RGB(255 - i / j, 255 - i / j, i / j)
            Next i
        Case 6
            'Form1.Cls
            For i = 0 To 255 * j
            Me.Line (0, i)-(Screen.Width, i), RGB(i / j, i / j, 255 - i / j)
            Next i
        Case 7
            'Form1.Cls
            For i = 0 To 255 * j
            Me.Line (0, i)-(Screen.Width, i), RGB(255 - i / j, i / j, i / j)
            Next i
        Case 8
            'Form1.Cls
            For i = 0 To 255 * j
            Me.Line (0, i)-(Screen.Width, i), RGB(i / j, 255 - i / j, i / j)
            Next i
    End Select
    If x <= 7 Then
        x = x + 1
    Else
        x = 0
    End If
End Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?