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

📄 pathchoose.frm

📁 这是一个VB开发的
💻 FRM
字号:
VERSION 5.00
Begin VB.Form pathChoose 
   Caption         =   "驱动器"
   ClientHeight    =   5250
   ClientLeft      =   60
   ClientTop       =   465
   ClientWidth     =   5880
   LinkTopic       =   "Form2"
   ScaleHeight     =   5250
   ScaleWidth      =   5880
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "关闭"
      Height          =   465
      Left            =   3810
      TabIndex        =   9
      Top             =   4680
      Width           =   1035
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   465
      Left            =   2550
      TabIndex        =   8
      Top             =   4680
      Width           =   1035
   End
   Begin VB.TextBox Text2 
      Height          =   405
      Left            =   1110
      TabIndex        =   7
      Text            =   "Text2"
      Top             =   3840
      Width           =   4245
   End
   Begin VB.TextBox Text1 
      Height          =   465
      Left            =   450
      TabIndex        =   5
      Text            =   "Text1"
      Top             =   4770
      Width           =   1395
   End
   Begin VB.DirListBox Dir1 
      Height          =   3030
      Left            =   1170
      TabIndex        =   2
      Top             =   660
      Width           =   4155
   End
   Begin VB.DriveListBox Drive1 
      Height          =   300
      Left            =   1200
      TabIndex        =   0
      Top             =   270
      Width           =   4095
   End
   Begin VB.Label Label4 
      Height          =   135
      Left            =   390
      TabIndex        =   6
      Top             =   4560
      Width           =   345
   End
   Begin VB.Label Label3 
      Caption         =   "文件名:"
      Height          =   345
      Left            =   240
      TabIndex        =   4
      Top             =   3960
      Width           =   945
   End
   Begin VB.Label Label2 
      Caption         =   "文件夹:"
      Height          =   255
      Left            =   240
      TabIndex        =   3
      Top             =   810
      Width           =   825
   End
   Begin VB.Label Label1 
      Caption         =   "驱动器:"
      Height          =   315
      Left            =   210
      TabIndex        =   1
      Top             =   240
      Width           =   795
   End
End
Attribute VB_Name = "pathChoose"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
'   If Not MyDebug Then On Error Resume Next
    If Trim(Text2) = "" Then
        MsgBox "请输入文件名!"
        Exit Sub
    End If
        path.Text1 = Label1.Caption
        path.pathname = Label1.Caption
        Unload Me
End Sub
Private Sub Command2_Click()
   Unload Me
End Sub
Private Sub Dir1_Change()
'    If Not MyDebug Then On Error Resume Next
    Label1.Caption = Dir1.path
    If Right(Label1.Caption, 1) <> "\" Then Label1.Caption = Label1.Caption & "\"
    Text1.Text = Label1.Caption
End Sub
Private Sub Drive1_Change()
    Dir1.path = Drive1.Drive
End Sub
Private Sub Form_Load()
'    If Not MyDebug Then On Error Resume Next
    Drive1.Drive = "c:"
'    CommonDialog1.Filter = "*.*"
'    Call ErrSave(Err, Me.Caption, "Form_Load")
'   Text1.Enabled = False
End Sub

Private Sub Text2_Change()
    Label1.Caption = Text1.Text & Text2.Text
End Sub

Private Sub Form_Unload(Cancel As Integer)
'    If Not MyDebug Then On Error Resume Next
'    dbBackUp.Enabled = True
        path.Enabled = True
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        Call Command1_Click
    End If
    
End Sub

⌨️ 快捷键说明

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