📄 服务器配置.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form1
Caption = "数据库配置"
ClientHeight = 5025
ClientLeft = 60
ClientTop = 450
ClientWidth = 8220
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 5025
ScaleWidth = 8220
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text4
Height = 405
Left = 2400
TabIndex = 8
Top = 3360
Width = 3135
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 495
Left = 6120
TabIndex = 7
Top = 3000
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 6120
TabIndex = 6
Top = 1560
Width = 1095
End
Begin VB.TextBox Text3
Height = 405
Left = 2400
TabIndex = 5
Top = 2400
Width = 3135
End
Begin VB.TextBox Text2
Height = 405
Left = 2400
TabIndex = 4
Top = 1485
Width = 3135
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 5400
Top = 4320
Visible = 0 'False
Width = 1935
_ExtentX = 3413
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.TextBox Text1
Height = 405
Left = 2400
TabIndex = 3
Top = 570
Width = 3135
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "数据库名称:"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 600
TabIndex = 9
Top = 3360
Width = 1935
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "密 码:"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 600
TabIndex = 2
Top = 2400
Width = 1935
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "用 户 名:"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 600
TabIndex = 1
Top = 1500
Width = 2055
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "服务器名称:"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 600
TabIndex = 0
Top = 600
Width = 2415
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Adodc1.Recordset.Update
Adodc1.Refresh
Adodc1.Refresh
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Load()
Dim a As String
a = App.Path + "\dl.mdb"
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & a & ";Persist Security Info=False"
Adodc1.RecordSource = "sjk"
Adodc1.Refresh
Set Text1.DataSource = Adodc1
Text1.DataField = "fwqm"
Set Text2.DataSource = Adodc1
Text2.DataField = "yhm"
Set Text3.DataSource = Adodc1
Text3.DataField = "mm"
Set Text4.DataSource = Adodc1
Text4.DataField = "sjk"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -