qexampleopen.frm

来自「VB学习者的入门教材,讲解得非常通俗,是VB初学者不错的入门级的电子教程」· FRM 代码 · 共 52 行

FRM
52
字号
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
Begin VB.Form Form1 
   Caption         =   "Common Dialog Examples"
   ClientHeight    =   2040
   ClientLeft      =   1140
   ClientTop       =   1515
   ClientWidth     =   6555
   LinkTopic       =   "Form1"
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   2040
   ScaleWidth      =   6555
   Begin VB.CommandButton cmdDisplay 
      Caption         =   "&Display Box"
      Height          =   495
      Left            =   2760
      TabIndex        =   1
      Top             =   1440
      Width           =   1215
   End
   Begin MSComDlg.CommonDialog cdlExample 
      Left            =   600
      Top             =   120
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   327681
      DialogTitle     =   "Open Example"
      Filter          =   "Bitmaps (*.bmp)|*.bmp|Icons (*.ico)|*.ico|Metafiles (*.wmf)|*.wmf|GIF files (*.gif)|*.gif|JPEG Files (*.jpg)|*.jpg"
   End
   Begin VB.Label lblExample 
      BorderStyle     =   1  'Fixed Single
      Height          =   495
      Left            =   600
      TabIndex        =   0
      Top             =   720
      Width           =   5655
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdDisplay_Click()
cdlExample.ShowOpen
lblExample.Caption = cdlExample.filename
End Sub


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?