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

📄 frmlocate.frm

📁 Inventory control system
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form frmLocate 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Locate DB"
   ClientHeight    =   2295
   ClientLeft      =   4140
   ClientTop       =   4455
   ClientWidth     =   4980
   Icon            =   "frmLocate.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2295
   ScaleWidth      =   4980
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton cmdCancel 
      Caption         =   "Cancel"
      Height          =   315
      Left            =   3690
      TabIndex        =   6
      Top             =   1830
      Width           =   1035
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "OK"
      Height          =   315
      Left            =   2580
      TabIndex        =   5
      Top             =   1830
      Width           =   1035
   End
   Begin VB.CommandButton cmdBrowse 
      Caption         =   "..."
      Height          =   345
      Left            =   4350
      TabIndex        =   4
      Top             =   1380
      Width           =   375
   End
   Begin VB.TextBox txtPath 
      Height          =   315
      Left            =   690
      TabIndex        =   3
      Top             =   1380
      Width           =   3615
   End
   Begin MSComDlg.CommonDialog dlgOpen 
      Left            =   3090
      Top             =   330
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.Frame Frame1 
      Caption         =   "Data Provider"
      Height          =   1005
      Left            =   180
      TabIndex        =   0
      Top             =   210
      Width           =   4605
      Begin VB.OptionButton Option1 
         Caption         =   "ODBC"
         Enabled         =   0   'False
         Height          =   285
         Left            =   150
         TabIndex        =   7
         Top             =   600
         Width           =   2655
      End
      Begin VB.OptionButton optJet4 
         Caption         =   "Microsoft Jet OLEDB 4.0"
         Height          =   285
         Left            =   150
         TabIndex        =   1
         Top             =   300
         Value           =   -1  'True
         Width           =   2655
      End
   End
   Begin VB.Label Label1 
      Caption         =   "Path"
      Height          =   285
      Left            =   180
      TabIndex        =   2
      Top             =   1410
      Width           =   765
   End
End
Attribute VB_Name = "frmLocate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdBrowse_Click()
  dlgOpen.ShowOpen
  txtPath.Text = dlgOpen.FileName
End Sub

Private Sub CmdCancel_Click()
  If CN.State = 1 Then CN.Close
  End
End Sub

Private Sub cmdOK_Click()
  If Trim(txtPath.Text) = "" Then
    'do nothing
  Else
    DBPath = txtPath.Text
    SetINI "VT Settings", "Path", DBPath
    
    
    Unload Me
    'If InvalidDB Then frmLogin.show 1
  End If
End Sub

Private Sub Form_Load()
  With dlgOpen
    .Filter = "All Files (*.*)|*.*| MS Access Files (*.mdb)|*.mdb|"
  End With
End Sub

⌨️ 快捷键说明

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