I added the VLC plugin from COM Component, dragged it to my form, added two buttons to the form ("Play" and "Stop"), and wrote the following code:
private void Form1_Load(object sender, EventArgs e)
{
axVLC.AutoPlay = false;
axVLC.playlist.add(@"C:\Users\Hanif\Documents\Visual Studio 2010\Projects\Education Visualization\Vlc\Resources\Video1.wmv");
}
private void btnPlay_Click(object sender, EventArgs e)
{
axVLC.playlist.play();
}
private void btnStop_Click(object sender, EventArgs e)
{
axVLC.playlist.stop();
}
But when I click on "Play", nothing happens.
What am I doing wrong?