home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmStartUp
- BackColor = &H00C0C0C0&
- Caption = "Read Volume Serial Number"
- ClientHeight = 2970
- ClientLeft = 2055
- ClientTop = 1620
- ClientWidth = 6105
- Height = 3435
- Left = 1965
- LinkTopic = "Form1"
- ScaleHeight = 2970
- ScaleWidth = 6105
- Top = 1245
- Width = 6285
- Begin DriveListBox drvDriveList
- BackColor = &H00FFFFFF&
- Height = 315
- Left = 1785
- TabIndex = 1
- Top = 915
- Width = 2550
- End
- Begin CommandButton cmdExit
- Cancel = -1 'True
- Caption = "E&xit"
- Height = 450
- Left = 2460
- TabIndex = 0
- Top = 2220
- Width = 1005
- End
- Begin Label lblSerialNo
- Alignment = 2 'Center
- BorderStyle = 1 'Fixed Single
- Height = 255
- Left = 3555
- TabIndex = 4
- Top = 1605
- Width = 1185
- End
- Begin Label lblLabel
- BackColor = &H00C0C0C0&
- Caption = "The Volume Serial Number is:"
- Height = 255
- Index = 1
- Left = 930
- TabIndex = 3
- Top = 1620
- Width = 2580
- End
- Begin Label lblLabel
- BackColor = &H00C0C0C0&
- Caption = "Select a drive for which you want to know the volume serial number:"
- Height = 585
- Index = 0
- Left = 1800
- TabIndex = 2
- Top = 195
- Width = 2520
- End
- Option Explicit
- Sub cmdExit_Click ()
- Unload Me
- End Sub
- Sub drvDriveList_Change ()
- lblSerialNo = VolSerialNo(Left$(drvDriveList.List(drvDriveList.ListIndex), 1))
- DoEvents
- End Sub
- Sub Form_Load ()
- drvDriveList.ListIndex = 2 'Set to an assumed hard drive
- End Sub
-