⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 f1.frm

📁 Visual Basic程序设计基础》-杨小影-源代码
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3780
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4980
   LinkTopic       =   "Form1"
   ScaleHeight     =   3780
   ScaleWidth      =   4980
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "字体"
      Height          =   495
      Left            =   2880
      TabIndex        =   2
      Top             =   2760
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "颜色"
      Height          =   495
      Left            =   960
      TabIndex        =   1
      Top             =   2760
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      Height          =   1095
      Left            =   1080
      TabIndex        =   0
      Text            =   "努力学习VB"
      Top             =   720
      Width           =   3015
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   3000
      Top             =   2280
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
      FileName        =   "*.bmp"
      Filter          =   "pictures(*.bmp)|*.bmp|all files(*.*)|*.*"
      FilterIndex     =   1
      InitDir         =   "c:\windows\my documents\"
   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 + -