ds.frm

来自「通过该程序可以方便的读取硬盘的序列号」· FRM 代码 · 共 38 行

FRM
38
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "serial"
   ClientHeight    =   1125
   ClientLeft      =   3315
   ClientTop       =   6120
   ClientWidth     =   2190
   LinkTopic       =   "Form1"
   ScaleHeight     =   1125
   ScaleWidth      =   2190
   Begin VB.DriveListBox Drive1 
      Height          =   315
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   1935
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Get the Drive Serial"
      Height          =   495
      Left            =   120
      TabIndex        =   0
      Top             =   480
      Width           =   1935
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
    MsgBox DriveSerial(Left(Drive1.Drive, 1))
End Sub

⌨️ 快捷键说明

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