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

📄 frmconnect.frm

📁 自己写的
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmConnect 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "连接数据库"
   ClientHeight    =   2520
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4680
   Icon            =   "frmConnect.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2520
   ScaleWidth      =   4680
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取消"
      Height          =   345
      Left            =   2280
      TabIndex        =   4
      Top             =   1890
      Width           =   1305
   End
   Begin VB.CommandButton cmdEnter 
      Caption         =   "确定"
      Height          =   345
      Left            =   840
      TabIndex        =   3
      Top             =   1890
      Width           =   1305
   End
   Begin VB.TextBox txtDBPassword 
      Height          =   345
      IMEMode         =   3  'DISABLE
      Left            =   1680
      PasswordChar    =   "*"
      TabIndex        =   2
      Top             =   1290
      Width           =   2295
   End
   Begin VB.TextBox txtDBUserID 
      Height          =   345
      Left            =   1680
      TabIndex        =   1
      Top             =   840
      Width           =   2295
   End
   Begin VB.TextBox txtDBServer 
      Height          =   345
      Left            =   1680
      TabIndex        =   0
      Top             =   270
      Width           =   2295
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "密      码:"
      Height          =   180
      Index           =   2
      Left            =   510
      TabIndex        =   7
      Top             =   1380
      Width           =   1080
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "登  陆  名:"
      Height          =   180
      Index           =   1
      Left            =   510
      TabIndex        =   6
      Top             =   930
      Width           =   1080
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "SQL Server:"
      Height          =   180
      Index           =   0
      Left            =   510
      TabIndex        =   5
      Top             =   360
      Width           =   1080
   End
End
Attribute VB_Name = "frmConnect"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdCancel_Click()
    Unload Me
    
End Sub

Private Sub cmdEnter_Click()
    On Error GoTo err
    
    Screen.MousePointer = vbHourglass
    
    If ConnectDB(Trim(txtDBServer), Trim(txtDBUserID), Trim(txtDBPassword)) Then
        Screen.MousePointer = vbDefault
        Unload Me
        frmBackup.Show
        Exit Sub
    End If
    
    Screen.MousePointer = vbDefault
    Exit Sub
err:
    Screen.MousePointer = vbDefault
    MsgBox err.Description
End Sub

⌨️ 快捷键说明

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