📄 frm_服务器设置.frm
字号:
VERSION 5.00
Begin VB.Form Frm_服务器设置
Caption = "IPor服务器设置 "
ClientHeight = 2730
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
Icon = "Frm_服务器设置.frx":0000
LinkTopic = "Form4"
MaxButton = 0 'False
ScaleHeight = 2730
ScaleWidth = 4680
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 3480
TabIndex = 5
Top = 2160
Width = 975
End
Begin VB.TextBox Text2
Height = 270
Left = 1560
TabIndex = 4
Text = "技术部"
Top = 1680
Width = 1815
End
Begin VB.TextBox Text1
Height = 270
Left = 1560
TabIndex = 3
Text = "192.168.0.1"
Top = 1200
Width = 1815
End
Begin VB.Label Label3
Caption = "服务器名:"
Height = 255
Left = 600
TabIndex = 2
Top = 1680
Width = 975
End
Begin VB.Label Label2
Caption = "IP地址:"
Height = 255
Left = 600
TabIndex = 1
Top = 1200
Width = 855
End
Begin VB.Image Image1
Height = 480
Left = 360
Picture = "Frm_服务器设置.frx":27A2
Top = 240
Width = 480
End
Begin VB.Label Label1
Caption = " 为了能更好的联接数据库,请您认真填写好数据库服务器的机算机名:"
Height = 735
Left = 1080
TabIndex = 0
Top = 240
Width = 3495
End
Begin VB.Label Label4
Caption = " 不能连接到服务器,可能是IP地址或服务器名填写不正确,请重新填写:"
Height = 735
Left = 1080
TabIndex = 6
Top = 240
Visible = 0 'False
Width = 3495
End
End
Attribute VB_Name = "Frm_服务器设置"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居汉化收藏整理
'发布日期:2007/05/02
'描 述:小型企业进销存源代码
'网 站:http://www.Mndsoft.com/ (VB6源码博客)
'网 站:http://www.VbDnet.com/ (VB.NET源码博客,主要基于.NET2005)
'e-mail :Mndsoft@163.com
'e-mail :Mndsoft@126.com
'OICQ :88382850
' 如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Private Sub Command1_Click()
Dim count As Integer
Dim Name As Long
n = WritePrivateProfileString("数据地址", "类型数", _
0, App.Path + "\data\ADR.ini")
n = WritePrivateProfileString("数据地址", "b" & 1, _
Text2.Text, App.Path + "\data\ADR.ini")
'Text2.Text = GetPrivateStringValue("数据地址", "b1", App.Path + "\data\ADR.ini")
'n = WritePrivateProfileString("判断是否第一次用", "b" & 1, _
1, App.Path + "\data\ADR.ini")
n = WritePrivateProfileString("IP地址", "b" & 1, _
Text1.Text, App.Path + "\data\ADR.ini")
Unload Me
End Sub
Private Sub Form_Activate()
Text2.SetFocus
End Sub
Private Sub Form_Load()
Dim count As Integer
Dim Name As Long
count = GetPrivateProfileInt("数据地址", "类型数", 0, _
App.Path + "\data\ADR.ini")
Text2.Text = GetPrivateStringValue("数据地址", "b" & _
1, App.Path + "\data\ADR.ini")
Text1.Text = GetPrivateStringValue("IP地址", "b" & _
1, App.Path + "\data\ADR.ini")
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -