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

📄 frmreg.frm

📁 手机短心控制接收发射程序,通过串口与手机连接,
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmReg 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "注册"
   ClientHeight    =   1605
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3750
   Icon            =   "frmReg.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1605
   ScaleWidth      =   3750
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox txtPassword 
      Height          =   345
      IMEMode         =   3  'DISABLE
      Left            =   1305
      TabIndex        =   3
      Top             =   510
      Width           =   2325
   End
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   390
      Left            =   2115
      TabIndex        =   2
      Top             =   1005
      Width           =   1140
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "认证"
      Default         =   -1  'True
      Height          =   390
      Left            =   510
      TabIndex        =   1
      Top             =   1005
      Width           =   1140
   End
   Begin VB.TextBox txtUserName 
      Height          =   345
      Left            =   1305
      Locked          =   -1  'True
      TabIndex        =   0
      Top             =   120
      Width           =   2325
   End
   Begin VB.Label lblLabels 
      Caption         =   "注册码:"
      Height          =   270
      Index           =   1
      Left            =   120
      TabIndex        =   5
      Top             =   540
      Width           =   1080
   End
   Begin VB.Label lblLabels 
      Caption         =   "手机序列号:"
      Height          =   270
      Index           =   0
      Left            =   120
      TabIndex        =   4
      Top             =   150
      Width           =   1080
   End
End
Attribute VB_Name = "frmReg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

    Dim LoginSucceeded As Boolean

Private Sub cmdCancel_Click()
    '设置全局变量为 false
    '不提示失败的登录
    LoginSucceeded = False
    Me.Hide
End Sub

Private Sub cmdOK_Click()
    Dim pSerial As String
    pSerial = operationSN(txtUserName.Text)
    If txtPassword.Text = pSerial Then
        SaveSetting App.EXEName, "注册", "手机SN", pSerial
        MsgBox "注册成功,谢谢使用!", vbOKOnly + vbInformation, "成功"
        Unload Me
    Else
        MsgBox "输入的注册码不正确,请重新输入!", 16, "错误"
    End If
End Sub

Private Sub Form_Load()
    Me.txtUserName.Text = mSN  'IMEI352495000428231
    txtPassword = GetSetting(App.EXEName, "注册", "手机SN", "")
End Sub

Private Sub Command1_Click()

End Sub





⌨️ 快捷键说明

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