?? g數(shù)據(jù)庫連接.frm
字號:
VERSION 5.00
Begin VB.Form G數(shù)據(jù)庫連接
Caption = "數(shù)據(jù)庫連接"
ClientHeight = 2685
ClientLeft = 60
ClientTop = 450
ClientWidth = 3150
LinkTopic = "Form1"
ScaleHeight = 2685
ScaleWidth = 3150
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton CmdOK
Caption = "確定"
Height = 375
Left = 1920
TabIndex = 4
Top = 2160
Width = 975
End
Begin VB.TextBox txtUserId
Height = 375
Left = 1320
TabIndex = 3
Text = "sa"
Top = 120
Width = 1575
End
Begin VB.TextBox txtPwd
Height = 375
IMEMode = 3 'DISABLE
Left = 1320
PasswordChar = "*"
TabIndex = 2
Text = "sa"
Top = 600
Width = 1575
End
Begin VB.TextBox txtDatabase
Height = 375
Left = 1320
TabIndex = 1
Text = "人事管理系統(tǒng)"
Top = 1080
Width = 1575
End
Begin VB.TextBox txtServer
Height = 375
Left = 1320
TabIndex = 0
Text = "MERRYCHINA"
Top = 1560
Width = 1575
End
Begin VB.Label Label1
Caption = "數(shù)據(jù)庫用戶ID:"
Height = 255
Left = 120
TabIndex = 8
Top = 240
Width = 1335
End
Begin VB.Label Label2
Caption = "登陸密碼:"
Height = 255
Left = 120
TabIndex = 7
Top = 720
Width = 1095
End
Begin VB.Label Label3
Caption = "數(shù)據(jù)庫名:"
Height = 255
Left = 120
TabIndex = 6
Top = 1200
Width = 1095
End
Begin VB.Label Label4
Caption = "服務器名稱:"
Height = 255
Left = 120
TabIndex = 5
Top = 1680
Width = 1095
End
End
Attribute VB_Name = "G數(shù)據(jù)庫連接"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdOK_Click()
'確定操作
ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=True;"
ConnectionString = ConnectionString & "User ID=" & Trim(txtUserId.Text) & ";Password=" & Trim(txtPwd.Text) & ";"
ConnectionString = ConnectionString & "Initial Catalog=" & Trim(txtDatabase.Text) & ";Data Source=" & Trim(txtServer.Text)
F重新登錄.Show
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -