' Декларируем функцию
Private Declare Function mciSendString Lib "winmm.dll" _
Alias "mciSendStringA" (ByVal lpstrCommand As String, _
ByVal lpstrReturnString As String, ByVal uRetrunLength _
As Long, ByVal hwndCallback As Long) As Long
‘ Загрузка формы
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim strFile As String
' Сначала загружаем файл
strFile = "C:\Koni.mp3" ' - это путь к музыкальному файлу...
mciSendString("open " & strFile & " alias music wait", "", 0, 0)
' Затем воспроизводим
mciSendString("play music", "", 0, 0)