What exactly do you want to do?
There are a lot of ways...one easy way is to control the mplayer app. This is a VBS script...
WshShell.Run "wmplayer.exe"
Setup a Scripting File System Object like "set oFSO=createobject("scripting.filesystemobject")"
Then use "WshShell.SendKeys" to send the keystrokes to the player
Another way is...
To embed the media then use Active X calls, which would requie visual basic.
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles Button1.Click
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
End Sub
70 views
Usually answered in minutes!
×