Const DATA_FILE_EXTENSION As String = ".mp3" Dim dlgFileDialog As New OpenFileDialog With dlgFileDialog .Filter = DATA_FILE_EXTENSION & _ " files (*" & DATA_FILE_EXTENSION & "|*" & DATA_FILE_EXTENSION .FilterIndex = 1 .RestoreDirectory = True If .ShowDialog() = DialogResult.OK Then 'Play the sound file Me.AxWindowsMediaPlayer1.URL = dlgFileDialog.FileName End If End With
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)