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

📄 frmsavepath.frm

📁 与仪源安检仪通讯实例
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Frmsavepath 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "请选择保存路径"
   ClientHeight    =   2715
   ClientLeft      =   45
   ClientTop       =   270
   ClientWidth     =   5985
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2715
   ScaleWidth      =   5985
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Command2 
      Cancel          =   -1  'True
      Caption         =   "取消"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   4440
      TabIndex        =   1
      Top             =   1680
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Default         =   -1  'True
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   4440
      TabIndex        =   0
      Top             =   840
      Width           =   1095
   End
   Begin VB.TextBox Text 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   320
      Left            =   360
      Locked          =   -1  'True
      TabIndex        =   2
      Top             =   120
      Width           =   5295
   End
   Begin VB.DriveListBox Drive 
      Height          =   300
      Left            =   360
      TabIndex        =   4
      Top             =   2280
      Width           =   3615
   End
   Begin VB.DirListBox Dir 
      Height          =   1560
      Left            =   360
      TabIndex        =   3
      Top             =   600
      Width           =   3615
   End
End
Attribute VB_Name = "Frmsavepath"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text.Text <> "" Then
    Savepath = Text.Text
    FrmMain.txt_savepath.Text = Savepath
    Unload Me
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Dir_Change()
Dim Str As String
Str = Right(Dir.Path, 1)
If Str = "\" Then
    Text.Text = Dir.Path
    Else:
    Text.Text = Dir.Path + "\"
End If
End Sub

Private Sub Drive_Change()
Dir.Path = Drive.List(Drive.ListIndex)
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
FrmMain.Enabled = True
End Sub

⌨️ 快捷键说明

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