📄 作业.frm
字号:
VERSION 5.00
Begin VB.Form 作业
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H0080FF80&
Caption = "首页"
ClientHeight = 5055
ClientLeft = 60
ClientTop = 450
ClientWidth = 7350
Icon = "作业.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 5055
ScaleWidth = 7350
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer1
Interval = 1
Left = 6240
Top = 2160
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "雷中华"
BeginProperty Font
Name = "隶书"
Size = 21.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 4680
TabIndex = 4
Top = 3720
Width = 1455
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Height = 255
Left = 360
TabIndex = 3
Top = 4440
Width = 2055
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "*^_^*"
Height = 180
Left = 3840
TabIndex = 2
Top = 1920
Width = 450
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "我的vb作业"
BeginProperty Font
Name = "楷体_GB2312"
Size = 48
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 1215
Left = 1080
TabIndex = 1
Top = 360
Width = 5295
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "我的vb作业"
BeginProperty Font
Name = "楷体_GB2312"
Size = 48
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 960
Left = 1200
TabIndex = 0
Top = 360
Width = 4800
End
End
Attribute VB_Name = "作业"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim step1%, step2%
Public Sub MyMove()
Label1.Move Label1.Left + 2 * step1
If Label1.Left > (作业.Width - 4400) Then
step1 = -4
ElseIf Label1.Left < 10 Then
step1 = 4
End If
End Sub
Private Sub Form_Load()
Dim j As Integer, x As Single, y As Single
y = 作业.ScaleHeight
x = 作业.ScaleWidth
sp = 255 / y
For j = 0 To y
Line (0, j)-(x, j), RGB(j * sp, j * sp, j * sp)
Next j
step1 = 4
Timer1.Interval = 1
Call MyMove
End Sub
Private Sub Label1_Click()
Unload Me
主页.Show
End Sub
Private Sub Timer1_Timer()
Label4.Caption = Now
Label1.Move Label1.Left + 2 * step1
If Label1.Left > (作业.Width - 4400) Then
step1 = -4
ElseIf Label1.Left < 10 Then
step1 = 4
End If
Static flag As Boolean
If flag Then Label1.ForeColor = &HFFFF& Else Label1.ForeColor = &HFF&
flag = Not flag
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -