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

📄 frmfile.frm

📁 gps控制网设计 gps控制网设计 gps控制网设计
💻 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
  ' 设置“CancelError”为 True
    .CancelError = True
    On Error GoTo ErrHandler
' 设置标志
     .Flags = cdlOFNHideReadOnly

     .ShowOpen
' 显示选定文件的名字
Text1.Text = .filename
End With
Exit Sub

ErrHandler:
' 用户按了“取消”按钮
Exit Sub

  
  
End Sub

⌨️ 快捷键说明

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