?? frmfile.frm
字號:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
Begin VB.Form Frmfile
HelpContextID = 300
BorderStyle = 1 'Fixed Single
Caption = "打開"
ClientHeight = 1965
ClientLeft = 45
ClientTop = 330
ClientWidth = 5145
ForeColor = &H8000000B&
Icon = "Frmfile.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1965
ScaleWidth = 5145
StartUpPosition = 2 'CenterScreen
Begin MSComDlg.CommonDialog ComDialog
Left = 4710
Top = 60
_ExtentX = 847
_ExtentY = 847
_Version = 327680
End
Begin VB.CommandButton Command3
WhatsThisHelpID = 300 'WhatsThisHelpID for: Command3 *** HelpWriter ***
Caption = "瀏覽 ..."
Height = 330
Left = 3855
TabIndex = 4
Top = 1410
Width = 1020
End
Begin VB.CommandButton Command2
WhatsThisHelpID = 300 'WhatsThisHelpID for: Command2 *** HelpWriter ***
Caption = "取消"
Height = 330
Left = 2392
TabIndex = 3
Top = 1410
Width = 1020
End
Begin VB.CommandButton Command1
WhatsThisHelpID = 300 'WhatsThisHelpID for: Command1 *** HelpWriter ***
Caption = "確定"
Height = 330
Left = 975
TabIndex = 2
Top = 1425
Width = 1020
End
Begin VB.TextBox Text1
WhatsThisHelpID = 300 'WhatsThisHelpID for: Text1 *** HelpWriter ***
Height = 435
Left = 870
TabIndex = 1
Top = 765
Width = 4080
End
Begin VB.Label Label2
WhatsThisHelpID = 300 'WhatsThisHelpID for: Label2 *** HelpWriter ***
Caption = "打開:"
Height = 285
Left = 240
TabIndex = 5
Top = 855
Width = 645
End
Begin VB.Label Label1
WhatsThisHelpID = 300 'WhatsThisHelpID for: Label1 *** HelpWriter ***
AutoSize = -1 'True
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 135
TabIndex = 0
Top = 120
Width = 120
End
End
Attribute VB_Name = "Frmfile"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public file13 As String
Private Sub Command1_Click()
file13 = Text1.Text
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
With ComDialog
' 設(shè)置“CancelError”為 True
.CancelError = True
On Error GoTo ErrHandler
' 設(shè)置標(biāo)志
.Flags = cdlOFNHideReadOnly
.ShowOpen
' 顯示選定文件的名字
Text1.Text = .filename
End With
Exit Sub
ErrHandler:
' 用戶按了“取消”按鈕
Exit Sub
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -