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

📄 frm_setcenter.frm

📁 提供给入门级别的GPRS编程人员
💻 FRM
字号:
VERSION 5.00
Object = "{2B12169D-6738-11D2-BF5B-00A024982E5B}#31.8#0"; "CoolButton.OCX"
Begin VB.Form frm_setcenter 
   BackColor       =   &H00FFC0C0&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "请设置数据中心"
   ClientHeight    =   2010
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4515
   Icon            =   "frm_setcenter.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2010
   ScaleWidth      =   4515
   StartUpPosition =   1  '所有者中心
   Begin VB.Frame Frame1 
      Caption         =   "数据中心设置"
      ForeColor       =   &H00FF0000&
      Height          =   2000
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   4500
      Begin TButton.axButton xpcmdbutton2 
         Height          =   375
         Left            =   3240
         TabIndex        =   6
         Top             =   1560
         Width           =   1095
         _ExtentX        =   1931
         _ExtentY        =   661
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Caption         =   "退  出"
         MaskColor       =   -2147483633
      End
      Begin TButton.axButton xpcmdbutton1 
         Height          =   375
         Left            =   1800
         TabIndex        =   5
         Top             =   1560
         Width           =   1095
         _ExtentX        =   1931
         _ExtentY        =   661
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Caption         =   "设  置"
         MaskColor       =   -2147483633
      End
      Begin VB.TextBox txt_ip 
         Appearance      =   0  'Flat
         Height          =   375
         Left            =   1800
         TabIndex        =   2
         Top             =   360
         Width           =   2535
      End
      Begin VB.TextBox txt_port 
         Appearance      =   0  'Flat
         Height          =   375
         Left            =   1800
         TabIndex        =   1
         Top             =   960
         Width           =   2535
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "数据中心IP:"
         Height          =   375
         Left            =   240
         TabIndex        =   4
         Top             =   480
         Width           =   1215
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "数据中心端口:"
         Height          =   255
         Left            =   240
         TabIndex        =   3
         Top             =   1080
         Width           =   1335
      End
   End
End
Attribute VB_Name = "frm_setcenter"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
    txt_ip.Text = "58.49.106.170"
    txt_port.Text = "3000"
End Sub
Private Sub xpcmdbutton1_Click() '设置数据中心
    If Trim(txt_ip) = "" Then
        MsgBox ("数据中心IP地址不能为空!"), vbOKOnly + vbInformation, "提示"
        Exit Sub
    End If
    
    If Trim(txt_ip) = "" Then
        MsgBox ("数据中心端口号不能为空!"), vbOKOnly + vbInformation, "提示"
        Exit Sub
    End If
    SetInIKeyValue "center", "centerip", Trim(txt_ip), App.Path & "\file\gprspcset.ini"
    SetInIKeyValue "center", "centerport", Trim(txt_port), App.Path & "\file\gprspcset.ini"
    MsgBox ("数据中心设置成功!"), vbOKOnly + vbInformation, "提示"
End Sub
Private Sub xpcmdbutton2_Click()
   Unload Me
End Sub

⌨️ 快捷键说明

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