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

📄 frm_favorite.frm

📁 汽修厂管理软件
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FRM_Favorite 
   Caption         =   "首选项"
   ClientHeight    =   5535
   ClientLeft      =   3930
   ClientTop       =   2715
   ClientWidth     =   8760
   Icon            =   "FRM_Favorite.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   5535
   ScaleWidth      =   8760
   Begin VB.CommandButton Cmd_Exit 
      Caption         =   "退出"
      Height          =   255
      Left            =   4320
      TabIndex        =   5
      Top             =   4800
      Width           =   1695
   End
   Begin VB.TextBox Txt_Info 
      Height          =   270
      Left            =   1440
      TabIndex        =   4
      Text            =   "Text1"
      Top             =   840
      Width           =   4215
   End
   Begin VB.CommandButton Cmd_Ok 
      Caption         =   "修改"
      Height          =   255
      Left            =   960
      TabIndex        =   2
      Top             =   4800
      Width           =   1575
   End
   Begin VB.TextBox txt_GarageName 
      Height          =   270
      Left            =   1440
      TabIndex        =   1
      Text            =   "Text1"
      Top             =   360
      Width           =   4215
   End
   Begin VB.Label Label2 
      Caption         =   "车行信息:"
      Height          =   255
      Left            =   480
      TabIndex        =   3
      Top             =   840
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "车行名:"
      Height          =   255
      Left            =   480
      TabIndex        =   0
      Top             =   360
      Width           =   735
   End
End
Attribute VB_Name = "FRM_Favorite"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Cmd_Exit_Click()
Unload Me
End Sub

Private Sub Cmd_Ok_Click()
   Dim nKeyHandle As Long, nValueType As Long, nLength As Long
   Dim sValue As String
   
   Call RegCreateKey(HKEY_LOCAL_MACHINE, "SoftWare\HussarWorkRoom", nKeyHandle)
   nLength = Len(txt_GarageName.Text)
   Call RegSetValueEx(nKeyHandle, "GarageName", 0, REG_SZ, txt_GarageName.Text, 255)
   nLength = Len(txt_GarageName.Text)
   Call RegSetValueEx(nKeyHandle, "GarageInfo", 0, REG_SZ, Txt_Info.Text, 255)
   Call RegCloseKey(nKeyHandle)
End Sub

Private Sub Form_Load()
   Dim nKeyHandle As Long, nValueType As Long, nLength As Long
   Dim sValue As String
   sValue = Space(255)
    
    Call RegCreateKey(HKEY_LOCAL_MACHINE, "Software\HussarWorkRoom", nKeyHandle)
    Call RegQueryValueEx(nKeyHandle, "GarageName", 0, nValueType, sValue, 255)
    txt_GarageName.Text = sValue
    Call RegQueryValueEx(nKeyHandle, "GarageInfo", 0, nValueType, sValue, 255)
    Txt_Info.Text = sValue
    Call RegCloseKey(nKeyHandle)
End Sub

⌨️ 快捷键说明

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