?? 打開文件.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 + -