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

📄 form0411.frm

📁 VB实验教程源码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "文件系统"
   ClientHeight    =   3630
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7455
   LinkTopic       =   "Form1"
   ScaleHeight     =   3630
   ScaleWidth      =   7455
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Caption         =   "Frame1"
      Height          =   2295
      Left            =   4680
      TabIndex        =   3
      Top             =   480
      Width           =   2295
      Begin VB.PictureBox Picture1 
         Height          =   1695
         Left            =   120
         ScaleHeight     =   1635
         ScaleWidth      =   1875
         TabIndex        =   4
         Top             =   360
         Width           =   1935
      End
   End
   Begin VB.FileListBox File1 
      Height          =   2250
      Left            =   2400
      TabIndex        =   2
      Top             =   480
      Width           =   1815
   End
   Begin VB.DirListBox Dir1 
      Height          =   1770
      Left            =   360
      TabIndex        =   1
      Top             =   600
      Width           =   1455
   End
   Begin VB.DriveListBox Drive1 
      Height          =   300
      Left            =   360
      TabIndex        =   0
      Top             =   2880
      Width           =   1575
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Dir1_Change()
'改变目录
    File1.Path = Dir1.Path
    File1.Pattern = "*.bmp;*.wmf;*.ico"             ' 设置显示的文件类型
End Sub

Private Sub Drive1_Change()
'改变驱动器
    Dir1.Path = Drive1.Drive
End Sub

Private Sub File1_Click()
    Frame1.Caption = File1.FileName             ' 显示文件名
    '装载图片框的图形文件
    Picture1.Picture = LoadPicture(File1.Path & "\" & File1.FileName)
End Sub

⌨️ 快捷键说明

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