I am using DirectShowLib-2005 - DxSnap example to display and capture the image from Webcam.
Everything works fine with the example.
But when i try to merge it with my application (i tried to call that form from my main form) it is working for the first time. Once i close and open the capture window, it is not displaying the video properly.
But the capturing of the image works perfectly all the time.
public partial class frmMain : Form
{
public frmMain()
{
InitializeComponent();
}
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main()
{
Application.Run(new frmMain());
}
private void button1_Click(object sender, EventArgs e)
{
frmdxSnap frmdxSnap = new frmdxSnap();
frmdxSnap.ShowDialog(this);
}
}
Even after restarting the PC, its still the same.
I have not changed anything in the DxSnap form.