home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / getuni1r / frmmain.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-08-18  |  2.1 KB  |  78 lines

  1. VERSION 5.00
  2. Begin VB.Form frmMain 
  3.    Caption         =   "VBMusic"
  4.    ClientHeight    =   495
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   5535
  8.    LinkTopic       =   "Form1"
  9.    MaxButton       =   0   'False
  10.    MinButton       =   0   'False
  11.    ScaleHeight     =   495
  12.    ScaleWidth      =   5535
  13.    StartUpPosition =   3  'Windows Default
  14.    Begin VB.CommandButton Command5 
  15.       Caption         =   "Restart"
  16.       Height          =   255
  17.       Left            =   4440
  18.       TabIndex        =   4
  19.       Top             =   120
  20.       Width           =   975
  21.    End
  22.    Begin VB.CommandButton Command4 
  23.       Caption         =   "Stop"
  24.       Height          =   255
  25.       Left            =   3360
  26.       TabIndex        =   3
  27.       Top             =   120
  28.       Width           =   975
  29.    End
  30.    Begin VB.CommandButton Command3 
  31.       Caption         =   "Resume"
  32.       Height          =   255
  33.       Left            =   2280
  34.       TabIndex        =   2
  35.       Top             =   120
  36.       Width           =   975
  37.    End
  38.    Begin VB.CommandButton Command2 
  39.       Caption         =   "Pause"
  40.       Height          =   255
  41.       Left            =   1200
  42.       TabIndex        =   1
  43.       Top             =   120
  44.       Width           =   975
  45.    End
  46.    Begin VB.CommandButton Command1 
  47.       Caption         =   "Play"
  48.       Height          =   255
  49.       Left            =   120
  50.       TabIndex        =   0
  51.       Top             =   120
  52.       Width           =   975
  53.    End
  54. Attribute VB_Name = "frmMain"
  55. Attribute VB_GlobalNameSpace = False
  56. Attribute VB_Creatable = False
  57. Attribute VB_PredeclaredId = True
  58. Attribute VB_Exposed = False
  59. Dim myMusic As New CDXVBMusic
  60. Private Sub Command1_Click()
  61.     myMusic.PlayMusic "vbmusic.mid"
  62. End Sub
  63. Private Sub Command2_Click()
  64.     myMusic.PauseMusic
  65. End Sub
  66. Private Sub Command3_Click()
  67.     myMusic.ResumeMusic
  68. End Sub
  69. Private Sub Command4_Click()
  70.     myMusic.StopMusic
  71. End Sub
  72. Private Sub Command5_Click()
  73.     myMusic.RestartMusic
  74. End Sub
  75. Private Sub Form_Load()
  76.     myMusic.Create Me.hWnd
  77. End Sub
  78.