mciSendString("play myMusic notify");
Private Const MM_MCINOTIFY As Integer = &H3B9 <System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand, Name:="FullTrust")> _ Protected Overrides Sub WndProc(ByRef m As Message) If m.Msg = MM_MCINOTIFY AndAlso m.WParam.ToInt32() = 1 Then ' Do stuff here. End If MyBase.WndProc(m) End Sub