【VB开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了VB开源代码-E数据库连接.frm的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
VERSION 5.00
Begin VB.Form E数据库连接
Caption = "数据库连接"
ClientHeight = 2655
ClientLeft = 60
ClientTop = 450
ClientWidth = 3195
LinkTopic = "Form1"
ScaleHeight = 2655
ScaleWidth = 3195
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 = "通讯录管理"
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 = "数据库用户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 = "数据库名:"
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 = "E数据库连接"
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)
D重新登录.Show
Unload Me
End Sub
上一篇:
DataHiderDoc.cpp
下一篇:
法律专业开题报告范文