📄 ini_form.frm
字号:
VERSION 5.00
Begin VB.Form ini_form
BackColor = &H80000009&
BorderStyle = 0 'None
Caption = "Form_log"
ClientHeight = 2985
ClientLeft = 0
ClientTop = 0
ClientWidth = 4515
LinkTopic = "Form1"
Picture = "ini_form.frx":0000
ScaleHeight = 2985
ScaleWidth = 4515
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
BackColor = &H80000009&
Caption = "退出"
Height = 375
Left = 2880
Style = 1 'Graphical
TabIndex = 9
Top = 1800
Width = 1455
End
Begin VB.CommandButton c1
BackColor = &H80000009&
Caption = "连接"
Height = 375
Left = 2880
Style = 1 'Graphical
TabIndex = 8
Top = 1200
Width = 1455
End
Begin VB.TextBox pwd
Height = 270
Left = 1080
TabIndex = 5
Top = 2280
Width = 1575
End
Begin VB.TextBox user
Height = 270
Left = 1080
TabIndex = 4
Text = "sa"
Top = 1800
Width = 1575
End
Begin VB.ComboBox database
Height = 300
Left = 1080
TabIndex = 3
Text = "lib"
Top = 1320
Width = 1575
End
Begin VB.ComboBox server
Height = 300
Left = 1080
TabIndex = 0
Text = "127.0.0.1"
Top = 840
Width = 1575
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "数据库:"
Height = 180
Left = 240
TabIndex = 7
Top = 1440
Width = 630
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "密码:"
Height = 180
Left = 360
TabIndex = 6
Top = 2400
Width = 450
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "用户名:"
Height = 180
Left = 240
TabIndex = 2
Top = 1920
Width = 630
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "服务器:"
Height = 180
Left = 240
TabIndex = 1
Top = 960
Width = 630
End
End
Attribute VB_Name = "ini_form"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public state As Integer
Public d_con As String
Public i_server As String
Public i_database As String
Public i_user As String
Public i_pwd As String
Public l_pwd As String
Public operator_a As String
Private Sub c1_Click()
i_server = Me.server.Text
i_database = Me.database.Text
i_user = Me.user.Text
i_pwd = Me.pwd.Text
l_pwd = "85"
Call ado.connection(i_server, i_database, i_user, i_pwd)
If state = 1 Then
Call startup.main
Me.Hide
Else
Exit Sub
End If
End Sub
Private Sub Command1_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -