⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frm_服务器设置不正确.frm

📁 一个用VB开发的非常不错的企业ERP管理源码,值得一看.
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Frm_服务器设置不正确 
   Caption         =   "服务器设置不正确"
   ClientHeight    =   2640
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   4935
   LinkTopic       =   "Form12"
   MaxButton       =   0   'False
   ScaleHeight     =   2640
   ScaleWidth      =   4935
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox Text1 
      Height          =   270
      Left            =   1800
      TabIndex        =   2
      Text            =   "192.168.0.1"
      Top             =   1080
      Width           =   1815
   End
   Begin VB.TextBox Text2 
      Height          =   270
      Left            =   1800
      TabIndex        =   1
      Text            =   "技术部"
      Top             =   1560
      Width           =   1815
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   3840
      TabIndex        =   0
      Top             =   1920
      Width           =   975
   End
   Begin VB.Image Image1 
      Height          =   480
      Left            =   120
      Picture         =   "Frm_服务器设置不正确.frx":0000
      Top             =   240
      Width           =   480
   End
   Begin VB.Label Label1 
      Caption         =   "    不能连接到服务器,可能是IP地址或服务器名填写不正确,请重新填写:"
      Height          =   735
      Left            =   840
      TabIndex        =   5
      Top             =   240
      Width           =   3495
   End
   Begin VB.Label Label2 
      Caption         =   "IP地址:"
      Height          =   255
      Left            =   840
      TabIndex        =   4
      Top             =   1080
      Width           =   855
   End
   Begin VB.Label Label3 
      Caption         =   "服务器名:"
      Height          =   255
      Left            =   840
      TabIndex        =   3
      Top             =   1560
      Width           =   975
   End
End
Attribute VB_Name = "Frm_服务器设置不正确"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

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, _
0, 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")

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -