📄 frm_about.frm
字号:
VERSION 5.00
Begin VB.Form frm_about
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 6525
ClientLeft = 3075
ClientTop = 2340
ClientWidth = 9765
Icon = "frm_about.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "frm_about.frx":0442
ScaleHeight = 6525
ScaleWidth = 9765
ShowInTaskbar = 0 'False
Begin VB.TextBox Text1
BackColor = &H00E0E0E0&
Height = 1335
Left = 240
MultiLine = -1 'True
TabIndex = 2
Text = "frm_about.frx":1134B
Top = 3720
Width = 4335
End
Begin VB.Image img_ok
Height = 615
Left = 7560
Picture = "frm_about.frx":113BE
Top = 5640
Width = 1485
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Email:kennis_wz@hotmail.com"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004000&
Height = 240
Left = 240
MouseIcon = "frm_about.frx":14C40
MousePointer = 99 'Custom
TabIndex = 1
Top = 6000
Width = 2760
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "www.freespace.com"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004000&
Height = 240
Left = 240
MouseIcon = "frm_about.frx":14F4A
MousePointer = 99 'Custom
TabIndex = 0
Top = 5640
Width = 1800
End
Begin VB.Line Line2
BorderColor = &H00FFFFFF&
X1 = 120
X2 = 9480
Y1 = 5535
Y2 = 5535
End
Begin VB.Line Line1
BorderColor = &H00808080&
X1 = 120
X2 = 9480
Y1 = 5520
Y2 = 5520
End
End
Attribute VB_Name = "frm_about"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim MoveScreen As Boolean
'鼠标位置
Dim MousX As Integer
Dim MousY As Integer
'窗体位置
Dim CurrX As Integer
Dim CurrY As Integer
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'如果是鼠标左键按下
If Button = 1 Then
'标示为移动状态
MoveScreen = True
'得到鼠标在窗体上的位置(相对与窗体内部坐标)
MousX = X
MousY = Y
End If
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If MoveScreen Then
'计算新的窗体坐标值
CurrX = frm_about.Left - MousX + X
CurrY = frm_about.Top - MousY + Y
'移动窗体到新的位置
frm_about.Move CurrX, CurrY
End If
End Sub
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
MoveScreen = False
End Sub
Private Sub img_ok_Click()
Unload Me
End Sub
Private Sub img_ok_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
img_ok.Top = 5650
End Sub
Private Sub img_ok_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
img_ok.Top = 5640
End Sub
Private Sub lab_credit_Click()
frm_credit.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -