同步效果.frm

来自「蒋加伏主编VB程序设计第四版PPT及全部课本源码 北京邮电大学出版社 」· FRM 代码 · 共 80 行

FRM
80
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   4290
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6975
   LinkTopic       =   "Form1"
   ScaleHeight     =   4290
   ScaleWidth      =   6975
   StartUpPosition =   3  '窗口缺省
   Begin VB.ComboBox cbotype 
      Height          =   300
      ItemData        =   "同步效果.frx":0000
      Left            =   480
      List            =   "同步效果.frx":0002
      TabIndex        =   3
      Top             =   3360
      Width           =   2055
   End
   Begin VB.FileListBox File1 
      Height          =   3330
      Left            =   3120
      TabIndex        =   2
      Top             =   240
      Width           =   3735
   End
   Begin VB.DirListBox Dir1 
      Height          =   2190
      Left            =   480
      TabIndex        =   1
      Top             =   840
      Width           =   1935
   End
   Begin VB.DriveListBox Drive1 
      Height          =   300
      Left            =   480
      TabIndex        =   0
      Top             =   240
      Width           =   1935
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub cbotype_click()
File1.Pattern = Mid(cbotype.Text, 21)
End Sub

Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub

Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub

Private Sub File1_Click()
MsgBox File1.FileName
End Sub

Private Sub File1_DblClick()
ChDir Dir1.Path
reval = Shell(File1.FileName, 1)
End Sub

Private Sub Form_Load()
Item = "所有文件(*.*)"
cbotype.AddItem Item + Space(20 - Len(Item)) + "*.*"
Item = "窗体文件(*.*)"
cbotype.AddItem Item + Space(20 - Len(Item)) + "*.frm"
Item = "可执行文件(*.exe)"
cbotype.AddItem Item + Space(20 - Len(Item)) + "*.exe"
cbotype.ListIndex = 0
End Sub

⌨️ 快捷键说明

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