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

📄 文件管理系统.frm

📁 蒋加伏主编VB程序设计第四版PPT及全部课本源码 北京邮电大学出版社 Visual Basic 程序设计教程(第四版) 主编 蒋加伏 张林峰 找了好久的(不带密码的)
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "例[10-1]文件管理系统"
   ClientHeight    =   3075
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4665
   LinkTopic       =   "Form1"
   ScaleHeight     =   3075
   ScaleWidth      =   4665
   StartUpPosition =   3  '窗口缺省
   Begin VB.ComboBox Combo1 
      Height          =   300
      ItemData        =   "文件管理系统.frx":0000
      Left            =   120
      List            =   "文件管理系统.frx":0002
      TabIndex        =   3
      Top             =   2640
      Width           =   1815
   End
   Begin VB.FileListBox File1 
      Height          =   2790
      Hidden          =   -1  'True
      Left            =   2040
      System          =   -1  'True
      TabIndex        =   2
      Top             =   120
      Width           =   2535
   End
   Begin VB.DirListBox Dir1 
      Height          =   1980
      Left            =   120
      TabIndex        =   1
      Top             =   600
      Width           =   1815
   End
   Begin VB.DriveListBox Drive1 
      Height          =   300
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   1815
   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_Load()
  Item = "所有文件(*.*)"
  Combo1.AddItem Item
  Item = "窗体文件(*.frm)"
  Combo1.AddItem Item
  Item = "位图文件(*.bmp)"
  Combo1.AddItem Item
  Combo1.ListIndex = 0
End Sub
Private Sub Combo1_Click()
  Select Case Combo1.Text
    Case "所有文件(*.*)"
      File1.Pattern = "*.*"
    Case "窗体文件(*.frm)"
      File1.Pattern = "*.frm"
    Case "位图文件(*.bmp)"
      File1.Pattern = "*.bmp"
  End Select
End Sub
Private Sub Drive1_Change()
  Dir1.Path = Drive1.Drive
End Sub
Private Sub Dir1_Change()
  File1.Path = Dir1.Path
End Sub
Private Sub File1_Click()
   '当用户单击文件列表框中的某个文件时,输出该文件的文件名
  MsgBox File1.FileName
End Sub
Private Sub File1_DblClick()
   '如果要使用户双击文件列表框中的某个可执行文件就能立即执行,则可编写如下事件过程。
  ChDir Dir1.Path
  ReturnValue = Shell(File1.FileName, 1)
End Sub

⌨️ 快捷键说明

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