home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmFileSystem
- BorderStyle = 3 'Fixed Dialog
- Caption = "Advanced Disk 32-bit OCX Properties"
- ClientHeight = 5610
- ClientLeft = 1080
- ClientTop = 1455
- ClientWidth = 7635
- Height = 6015
- Left = 1020
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 5610
- ScaleWidth = 7635
- ShowInTaskbar = 0 'False
- Top = 1110
- Width = 7755
- Begin VB.CommandButton cmdAbout
- Caption = "&About"
- Height = 255
- Left = 5640
- TabIndex = 54
- Top = 960
- Width = 975
- End
- Begin VB.CommandButton cmdHelp
- Caption = "&Help"
- Height = 255
- Left = 5640
- TabIndex = 5
- Top = 600
- Width = 975
- End
- Begin VB.CommandButton cmdClose
- Caption = "&Close"
- Height = 255
- Left = 5640
- TabIndex = 4
- Top = 120
- Width = 1695
- End
- Begin VB.Frame Frame2
- Caption = "Properties changed by 'Select Drive' Above (non-changable)"
- Height = 3915
- Left = 180
- TabIndex = 7
- Top = 1560
- Width = 7215
- Begin VB.Frame Frame6
- Caption = "Windows"
- Height = 975
- Left = 3240
- TabIndex = 49
- Top = 2640
- Width = 3795
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 19
- Left = 1440
- TabIndex = 53
- Top = 540
- Width = 2205
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 18
- Left = 1440
- TabIndex = 52
- Top = 300
- Width = 2205
- End
- Begin VB.Label Label5
- Caption = "System Directory"
- Height = 195
- Left = 180
- TabIndex = 51
- Top = 540
- Width = 1185
- End
- Begin VB.Label Label4
- Caption = "Directory:"
- Height = 195
- Left = 180
- TabIndex = 50
- Top = 300
- Width = 1185
- End
- End
- Begin VB.Frame Frame5
- Caption = "Disk"
- Height = 1455
- Left = 180
- TabIndex = 40
- Top = 2160
- Width = 2895
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 17
- Left = 1560
- TabIndex = 48
- Top = 960
- Width = 1215
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 16
- Left = 1560
- TabIndex = 47
- Top = 720
- Width = 1215
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 15
- Left = 1560
- TabIndex = 46
- Top = 480
- Width = 1215
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 14
- Left = 1560
- TabIndex = 45
- Top = 240
- Width = 1215
- End
- Begin VB.Label Label3
- Caption = "Free Clusters"
- Height = 255
- Index = 17
- Left = 120
- TabIndex = 44
- Top = 480
- Width = 1545
- End
- Begin VB.Label Label3
- Caption = "Clusters"
- Height = 255
- Index = 16
- Left = 120
- TabIndex = 43
- Top = 240
- Width = 1545
- End
- Begin VB.Label Label3
- Caption = "Sectors Per Cluster"
- Height = 255
- Index = 15
- Left = 120
- TabIndex = 42
- Top = 720
- Width = 1545
- End
- Begin VB.Label Label3
- Caption = "Bytes Per Sector"
- Height = 255
- Index = 14
- Left = 120
- TabIndex = 41
- Top = 960
- Width = 1545
- End
- End
- Begin VB.Frame Frame4
- Caption = "File System"
- ClipControls = 0 'False
- Height = 2295
- Left = 3240
- TabIndex = 11
- Top = 240
- Width = 3795
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 13
- Left = 1800
- TabIndex = 39
- Top = 1920
- Width = 1545
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 12
- Left = 1800
- TabIndex = 38
- Top = 1680
- Width = 1545
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 11
- Left = 1800
- TabIndex = 37
- Top = 240
- Width = 1545
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 10
- Left = 1800
- TabIndex = 36
- Top = 480
- Width = 1545
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 9
- Left = 1800
- TabIndex = 35
- Top = 720
- Width = 1545
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 8
- Left = 1800
- TabIndex = 34
- Top = 960
- Width = 1545
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 7
- Left = 1800
- TabIndex = 33
- Top = 1200
- Width = 1545
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 6
- Left = 1800
- TabIndex = 32
- Top = 1440
- Width = 1545
- End
- Begin VB.Label Label3
- Caption = "Volume Compressed"
- Height = 255
- Index = 13
- Left = 90
- TabIndex = 31
- Top = 1920
- Width = 1545
- End
- Begin VB.Label Label3
- Caption = "Unicode stored "
- Height = 255
- Index = 12
- Left = 90
- TabIndex = 30
- Top = 1680
- Width = 1545
- End
- Begin VB.Label Label3
- Caption = "Case Is Perserved"
- Height = 255
- Index = 11
- Left = 90
- TabIndex = 29
- Top = 240
- Width = 1545
- End
- Begin VB.Label Label3
- Caption = "Case Sensitive"
- Height = 255
- Index = 10
- Left = 90
- TabIndex = 28
- Top = 480
- Width = 1545
- End
- Begin VB.Label Label3
- Caption = "File Compression"
- Height = 255
- Index = 9
- Left = 90
- TabIndex = 27
- Top = 720
- Width = 1545
- End
- Begin VB.Label Label3
- Caption = "System Name"
- Height = 255
- Index = 8
- Left = 90
- TabIndex = 26
- Top = 960
- Width = 1545
- End
- Begin VB.Label Label3
- Caption = "System Name Length"
- Height = 255
- Index = 7
- Left = 90
- TabIndex = 25
- Top = 1200
- Width = 1545
- End
- Begin VB.Label Label3
- Caption = "Persistent ACLS"
- Height = 255
- Index = 6
- Left = 90
- TabIndex = 24
- Top = 1440
- Width = 1545
- End
- End
- Begin VB.Frame Frame3
- Caption = "Drive"
- Height = 1815
- Left = 180
- TabIndex = 10
- Top = 240
- Width = 2895
- Begin VB.Label Label3
- Caption = "Serial Number"
- Height = 255
- Index = 5
- Left = 90
- TabIndex = 23
- Top = 1500
- Width = 1005
- End
- Begin VB.Label Label3
- Caption = "Used Space:"
- Height = 255
- Index = 4
- Left = 90
- TabIndex = 22
- Top = 1260
- Width = 1005
- End
- Begin VB.Label Label3
- Caption = "Type (int)"
- Height = 255
- Index = 3
- Left = 90
- TabIndex = 21
- Top = 1020
- Width = 1005
- End
- Begin VB.Label Label3
- Caption = "Type (char)"
- Height = 255
- Index = 2
- Left = 90
- TabIndex = 20
- Top = 780
- Width = 1005
- End
- Begin VB.Label Label3
- Caption = "Total Space:"
- Height = 255
- Index = 1
- Left = 90
- TabIndex = 19
- Top = 540
- Width = 1005
- End
- Begin VB.Label Label3
- Caption = "Free Space:"
- Height = 255
- Index = 0
- Left = 90
- TabIndex = 18
- Top = 300
- Width = 1005
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 5
- Left = 1170
- TabIndex = 17
- Top = 1500
- Width = 1545
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 4
- Left = 1170
- TabIndex = 16
- Top = 1260
- Width = 1545
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 3
- Left = 1170
- TabIndex = 15
- Top = 1020
- Width = 1545
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 2
- Left = 1170
- TabIndex = 14
- Top = 780
- Width = 1545
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 1
- Left = 1170
- TabIndex = 13
- Top = 540
- Width = 1545
- End
- Begin VB.Label lblDrive
- Caption = "Label3"
- Height = 255
- Index = 0
- Left = 1170
- TabIndex = 12
- Top = 300
- Width = 1545
- End
- End
- End
- Begin VB.Frame Frame1
- Caption = "Changable Properties"
- Height = 1395
- Left = 180
- TabIndex = 6
- Top = 60
- Width = 5235
- Begin VB.CommandButton cmdChange
- Caption = "Change the Drive's Volume Label"
- Height = 315
- Index = 1
- Left = 2160
- TabIndex = 3
- Top = 780
- Width = 2895
- End
- Begin VB.CommandButton cmdChange
- Caption = "Change the Drive"
- Height = 315
- Index = 0
- Left = 180
- TabIndex = 1
- Top = 780
- Width = 1815
- End
- Begin VB.TextBox txtVolume
- Height = 285
- Left = 3240
- TabIndex = 2
- Top = 360
- Width = 1815
- End
- Begin VB.TextBox txtDrive
- Height = 285
- Left = 1260
- TabIndex = 0
- Top = 360
- Width = 735
- End
- Begin VB.Label Label2
- Caption = "Volume label:"
- Height = 255
- Left = 2160
- TabIndex = 9
- Top = 360
- Width = 1005
- End
- Begin VB.Label Label1
- Caption = "Select Drive:"
- Height = 255
- Left = 180
- TabIndex = 8
- Top = 360
- Width = 1005
- End
- End
- Begin ADVDISKLib.AdvDisk AdvDisk1
- Left = 6840
- Top = 600
- _Version = 262144
- _ExtentX = 1085
- _ExtentY = 1296
- _StockProps = 0
- Drive = "d:\"
- End
- Attribute VB_Name = "frmFileSystem"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Sub UpdateAdvDisk()
- ' Display the changable Property Fields
- ' AdvDisk Drive Properties
- txtDrive.Text = AdvDisk1.Drive
- txtVolume.Text = AdvDisk1.DriveVolumeName
- ' Display the non-changable Property Fields
- ' AdvDisk Drive Properties
- lblDrive(0).Caption = AdvDisk1.DriveFreeSpace
- lblDrive(1).Caption = AdvDisk1.DriveTotalSpace
- lblDrive(2).Caption = AdvDisk1.DriveTypeChar
- lblDrive(3).Caption = AdvDisk1.DriveTypeInt
- lblDrive(4).Caption = AdvDisk1.DriveUsedSpace
- lblDrive(5).Caption = AdvDisk1.DriveVolumeSerialNumber
- ' AdvDisk File System Properties
- lblDrive(11).Caption = AdvDisk1.FileSystemCaseIsPreserved
- lblDrive(10).Caption = AdvDisk1.FileSystemCaseSensitive
- lblDrive(9).Caption = AdvDisk1.FileSystemFileIsCompressed
- lblDrive(8).Caption = AdvDisk1.FileSystemName
- lblDrive(7).Caption = AdvDisk1.FileSystemNameLength
- lblDrive(6).Caption = AdvDisk1.FileSystemPersistentACLS
- lblDrive(12).Caption = AdvDisk1.FileSystemUnicodeStoredOnDisk
- lblDrive(13).Caption = AdvDisk1.FileSystemVolumeIsCompressed
- ' AdvDisk Disk Properties
- lblDrive(14).Caption = AdvDisk1.DiskClusters
- lblDrive(15).Caption = AdvDisk1.DiskFreeClusters
- lblDrive(16).Caption = AdvDisk1.DiskSectorsPerCluster
- lblDrive(17).Caption = AdvDisk1.DiskBytesPerSector
- ' AdvDisk Windows Properties
- lblDrive(18).Caption = AdvDisk1.WindowsDirectory
- lblDrive(19).Caption = AdvDisk1.WindowsSystemDirectory
- End Sub
- Private Sub cmdAbout_Click()
- AdvDisk1.AboutBox
- End Sub
- Private Sub cmdChange_Click(nbutton As Integer)
- ' Change properties as per user
- If nbutton = 0 Then
- ' This will automatically update the
- ' Non-Changable Property Fields
- AdvDisk1.Drive = txtDrive.Text
- ElseIf nbutton = 1 Then
- ' Change the Disk Label as per user
- AdvDisk1.DriveVolumeName = txtVolume.Text
- End If
- UpdateAdvDisk ' show properties
- End Sub
- Private Sub cmdClose_Click()
- Unload Me
- End Sub
- Private Sub cmdHelp_Click()
- Dim RetVal As Integer
- Dim strHelp As String
- On Error Resume Next
- strHelp = "winhelp " & App.Path & "\advdisk.hlp"
- ' Run Help File for this control.
- RetVal = Shell(strHelp, 1)
- End Sub
- Private Sub Form_Load()
- ' Display Diak Properties
- txtDrive.Text = AdvDisk1.Drive
- txtVolume.Text = AdvDisk1.DriveVolumeName
- UpdateAdvDisk ' show properties
- End Sub
-