frmfirst.frm

来自「OA编程 源代码」· FRM 代码 · 共 121 行

FRM
121
字号
VERSION 5.00
Begin VB.Form frmFirst 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "系统注册"
   ClientHeight    =   2070
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3870
   Icon            =   "frmFirst.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2070
   ScaleWidth      =   3870
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton cmdExit 
      Caption         =   "退出"
      Height          =   375
      Left            =   2520
      TabIndex        =   2
      Top             =   1560
      Width           =   975
   End
   Begin VB.CommandButton cmdSN 
      Caption         =   "确认"
      Height          =   375
      Left            =   1560
      TabIndex        =   1
      Top             =   1560
      Width           =   975
   End
   Begin VB.TextBox txtSN 
      Height          =   375
      Left            =   1320
      TabIndex        =   0
      Top             =   840
      Width           =   2175
   End
   Begin VB.Label LabBase 
      BackColor       =   &H00FFFF00&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1320
      TabIndex        =   5
      Top             =   240
      Width           =   2175
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "正式注册号:"
      Height          =   180
      Left            =   240
      TabIndex        =   4
      Top             =   960
      Width           =   1080
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "基本注册号:"
      Height          =   180
      Left            =   240
      TabIndex        =   3
      Top             =   360
      Width           =   1080
   End
End
Attribute VB_Name = "frmFirst"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdExit_Click()
    Unload Me
    
End Sub

Private Sub cmdSN_Click()
Dim cc As String
Dim dd As String
    
    cc = GetSetting("tLlM", "Setting", "PhotoInfo", "")
    cc = UnTrans(cc)
    
    If Len(txtSN.Text) = 9 Then
        dd = UnFormatStr(txtSN.Text)
        If cc = dd Then
            dd = Trans(txtSN.Text)
            SaveSetting "tLlM", "Setting", "PhotoSize", dd
            
            Unload Me
            
            Call FormInit1
            
        Else
            MsgBox "正式注册号不对,请与开发商联系!", 48, "系统提示"
        End If
    Else
        MsgBox "请输入正确的注册号!", 48, "系统提示"
    End If
End Sub

Private Sub Form_Load()
Dim cc As String

    cc = GetSetting("tLlM", "Setting", "PhotoInfo", "")
    cc = UnTrans(cc)
    cc = BaseStr(cc)
    LabBase.Caption = cc

End Sub

⌨️ 快捷键说明

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