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

📄 打开文件.frm

📁 定时器代码生成器
💻 FRM
字号:
VERSION 5.00
Begin VB.Form 打开文件 
   Caption         =   "打开文件"
   ClientHeight    =   3840
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8295
   LinkTopic       =   "Form2"
   ScaleHeight     =   3840
   ScaleWidth      =   8295
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton 取消 
      Caption         =   "取消"
      Height          =   495
      Left            =   6000
      TabIndex        =   4
      Top             =   2040
      Width           =   1815
   End
   Begin VB.CommandButton 确定 
      Caption         =   "确定"
      Height          =   495
      Left            =   6000
      TabIndex        =   3
      Top             =   1080
      Width           =   1815
   End
   Begin VB.FileListBox File1 
      Height          =   3330
      Left            =   2640
      TabIndex        =   2
      Top             =   120
      Width           =   2895
   End
   Begin VB.DirListBox Dir1 
      Height          =   3450
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   2295
   End
   Begin VB.DriveListBox Drive1 
      Height          =   300
      Left            =   5640
      TabIndex        =   0
      Top             =   240
      Width           =   2535
   End
End
Attribute VB_Name = "打开文件"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


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

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


Private Sub 取消_Click()
打开文件.Hide
End Sub

Private Sub 确定_Click()
Dim filename As String, asc As String
On Error GoTo err
filename = File1.Path & "\" & File1.filename
Open filename For Input As #1
Do While Not EOF(1)
Line Input #1, asc
bjtqux = bjtqux & asc
Loop
Close #10
openfileok = 10
打开文件.Hide
Exit Sub
err:
   MsgBox err.Description
End Sub

⌨️ 快捷键说明

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