📄 f1.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 5070
ClientLeft = 60
ClientTop = 345
ClientWidth = 7080
LinkTopic = "Form1"
ScaleHeight = 5070
ScaleWidth = 7080
StartUpPosition = 3 '窗口缺省
Begin MSComDlg.CommonDialog CommonDialog1
Left = 3480
Top = 1920
_ExtentX = 847
_ExtentY = 847
_Version = 393216
FileName = "*.bmp"
Filter = "pictures(*.bmp)|*.bmp|all files(*.*)|*.*"
FilterIndex = 1
InitDir = "c:\windows\my documents\"
End
Begin VB.Image Image1
Height = 3135
Left = 960
Top = 1560
Width = 3855
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
CommonDialog1.DialogTitle = "打开图片" '设置对话框标题
CommonDialog1.FilterIndex = 2
CommonDialog1.InitDir = "c:\program files\" '设置默认路径
CommonDialog1.Filter = "图片文件(*.bmp)|*.bmp|文本文件(*.txt)|*.txt"
CommonDialog1.ShowOpen '设置为打开文件
Image1.Picture = LoadPicture(CommonDialog1.FileName)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -