home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{C2C54FE0-6AA3-11D3-941C-444553540000}#5.0#0"; "CDDBAXC.OCX"
- Begin VB.Form Form1
- BorderStyle = 1 'Fixed Single
- Caption = "CDDB Control Demo"
- ClientHeight = 3600
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 8010
- LinkTopic = "Form1"
- LockControls = -1 'True
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3600
- ScaleWidth = 8010
- StartUpPosition = 3 'Windows Default
- Begin CDDBActiveXControl.CDDB CDDB1
- Left = 6240
- Top = 2520
- _ExtentX = 1535
- _ExtentY = 1058
- End
- Begin VB.TextBox Text2
- Height = 285
- Left = 5040
- Locked = -1 'True
- TabIndex = 4
- Top = 1680
- Width = 2895
- End
- Begin VB.TextBox Text1
- Height = 285
- Left = 5040
- Locked = -1 'True
- TabIndex = 3
- Top = 960
- Width = 2895
- End
- Begin VB.CommandButton Command1
- Caption = "Load"
- Height = 375
- Left = 7200
- TabIndex = 2
- Top = 120
- Width = 735
- End
- Begin VB.DriveListBox Drive1
- Height = 315
- Left = 5040
- TabIndex = 1
- Top = 120
- Width = 2055
- End
- Begin VB.ListBox List1
- Height = 3180
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 4815
- End
- Begin VB.TextBox Text3
- Height = 285
- Left = 5040
- Locked = -1 'True
- TabIndex = 10
- Top = 2400
- Width = 2895
- End
- Begin VB.Label Label5
- AutoSize = -1 'True
- Caption = "Genre:"
- Height = 195
- Left = 5040
- TabIndex = 9
- Top = 2160
- Width = 480
- End
- Begin VB.Label Label4
- AutoSize = -1 'True
- Caption = "Number Of Tracks: 0"
- Height = 195
- Left = 5040
- TabIndex = 8
- Top = 3120
- Width = 1485
- End
- Begin VB.Label Label3
- AutoSize = -1 'True
- Caption = "Current Disk ID: [No CD]"
- Height = 195
- Left = 5040
- TabIndex = 7
- Top = 2880
- Width = 1740
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- Caption = "CD Title:"
- Height = 195
- Left = 5040
- TabIndex = 6
- Top = 1440
- Width = 615
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Artist"
- Height = 195
- Left = 5040
- TabIndex = 5
- Top = 720
- Width = 345
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub CDDB1_CDInfo(Artist As Variant, Title As Variant, Genre As Variant)
- Text1.Text = Artist
- Text2.Text = Title
- Text3.Text = Genre
- End Sub
- Private Sub CDDB1_Connected()
- List1.Clear
- Text1.Text = ""
- Text2.Text = ""
- Text3.Text = ""
- Caption = "CDDB Control Demo [Connected]"
- End Sub
- Private Sub CDDB1_Disconnected()
- Caption = "CDDB Control Demo [Disconnected]"
- Label3.Caption = "Current Disk ID: [No CD]"
- Command1.Enabled = True
- End Sub
- Private Sub CDDB1_DiskLoaded()
- Label3.Caption = "Current Disk ID: " & CDDB1.DiskID
- CDDB1.Connect Server1
- End Sub
- Private Sub CDDB1_Tracks(Number As Variant, Title As Variant)
- If Len(Number) = 1 Then
- Number = "0" & Number
- End If
- List1.AddItem Number & ":" & vbTab & Title
- Label4.Caption = "Number Of Tracks: " & Number
- End Sub
- Private Sub Command1_Click()
- If InStr(1, Drive1.Drive, "[DRIVE]") <> 0 Then Exit Sub
- If InStr(1, Drive1.Drive, "a:") <> 0 Then Exit Sub
- CDDB1.LoadDisk Drive1.Drive
- Caption = "CDDB Control Demo [Connecting...]"
- Command1.Enabled = False
- End Sub
-