OK, the easiest way to do it is to use the
VLC Player ActiveX control
Just go to the link above and download and install the program.
Once the program is installed, you can then add it as a control in your project. Assuming you are using VB.net...
Right-click on your toolbox
Select
Choose Items...On the tab at the top, click
COM ComponentsScroll down and tick
VideoLan VLC ActiveX Plugin v2Now you can just select the control which will be at the bottom of the "All Windows Forms" list and add it to your form. Set the visible property to false.
Give it a decent name like "VLCPlayer".
Then you can just like this:
CODE
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
VLCPlugin.playlist.add("d:\oggfile.ogg")
VLCPlugin.playlist.play()
End Sub
And it'll work like a charm.