Your issue has to do with the instance of class video. You have tell it where it can render the video (video.Owner = ). Second the code you posted looks a bit weird as the declaration
and initialization of Video v is inside the class and not inside a method. I don't know if that was what you intended.
add a panel to your form let's say its name be videoPanel and change your code to this:
using System;using System.Collections.Generic;
using System.ComponentModel;using System.Data;
using System.Drawing;using System.Linq;
using System.Text;using System.Windows.Forms;
using Microsoft.DirectX.AudioVideoPlayback;
namespace test{
public partial class Form1 : Form
{
private Video v;
public Form1()
{
InitializeComponent();
v = new Video("e:\\GEM TV noevent 20100129_230128 #1.mpg");
v.Owner = videoPanel;
}
private void button1_Click(object sender, EventArgs e)
{
v.Play();
}
}
}
I hope that helps you!
Regards,
Manfred