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

📄 form36.frm

📁 利用VB编写的一个完整的酒店管理程序,支持双数据库!
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form36 
   BackColor       =   &H00FFFF80&
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "软件注册!"
   ClientHeight    =   2820
   ClientLeft      =   45
   ClientTop       =   315
   ClientWidth     =   5175
   LinkTopic       =   "Form36"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2820
   ScaleWidth      =   5175
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Command1 
      Caption         =   "注 册"
      Height          =   375
      Left            =   3600
      TabIndex        =   1
      Top             =   2400
      Width           =   1335
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00FFFF80&
      Caption         =   "请输入您的注册信息"
      Height          =   1935
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   4935
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   1320
         TabIndex        =   4
         Top             =   1080
         Width           =   3375
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   1320
         TabIndex        =   2
         Top             =   600
         Width           =   3375
      End
      Begin VB.Label Label2 
         BackColor       =   &H00FFFF80&
         Caption         =   "注册码:"
         Height          =   255
         Left            =   360
         TabIndex        =   5
         Top             =   1200
         Width           =   975
      End
      Begin VB.Label Label1 
         BackColor       =   &H00FFFF80&
         Caption         =   "企业名称:"
         Height          =   255
         Left            =   360
         TabIndex        =   3
         Top             =   720
         Width           =   975
      End
   End
End
Attribute VB_Name = "Form36"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'FIXIT: 使用 Option Explicit 可以避免隐式创建 Variant 类型的变量                                          FixIT90210ae-R383-H1984
Private Sub Command1_Click()
Dim RetVal As Boolean
 Dim WriteToReg As RegClass
 Set WriteToReg = New RegClass
If Text1.Text <> "" And Text2.Text <> "" Then
If Text2.Text = "CDKEY-HOTEL-95588-24172-RMBER" Then
 RetVal = WriteToReg.WriteRegStringValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion", "IsShare", 0)
 MsgBox "注册成功!谢谢您的注册。"
 Unload Me
 Else '  IsShare = False
  MsgBox "请输入正确的注册号码!请注意大小写!"
  End If
  Else
  MsgBox "请您输入正确的信息?"
  End If
End Sub

⌨️ 快捷键说明

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