📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00FFFFFF&
Caption = "Form1"
ClientHeight = 2325
ClientLeft = 60
ClientTop = 345
ClientWidth = 2820
LinkTopic = "Form1"
ScaleHeight = 2325
ScaleWidth = 2820
StartUpPosition = 3 '窗口缺省
Begin VB.Image Image1
Height = 615
Left = 765
Picture = "Form1.frx":0000
Top = 855
Width = 1290
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'***********************************************************************
'* 文件名: Form1.frm
'* 说 明: 美化按钮示例
'* 版 本: 2005.12.24 颜志军 初版
'***********************************************************************
Option Explicit
Private g_cmdButtonFlag As Boolean
Private Sub Form_Load()
g_cmdButtonFlag = True
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1.Picture = LoadPicture(App.Path & "\1.bmp")
g_cmdButtonFlag = True
End Sub
Private Sub Image1_Click()
'按钮按下事件处理代码
End Sub
Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
Image1.Picture = LoadPicture(App.Path & "\3.bmp")
g_cmdButtonFlag = False
End If
End Sub
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If g_cmdButtonFlag Then
Image1.Picture = LoadPicture(App.Path & "\2.bmp")
End If
End Sub
Private Sub Image1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
Image1.Picture = LoadPicture(App.Path & "\1.bmp")
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -