automatically choose video file without using openfiledialog
<p>I am using AForge code to play video in my program using c# and it works well. here is the code:</p>

<pre><code>private void loadButton_Click(object sender, EventArgs e)
{
    if (openFileDialog1.ShowDialog() == DialogResult.OK)
    {
        FileVideoSource fileSource = new FileVideoSource(openFileDialog1.FileName);
        OpenVideoSource(fileSource);
    }
}
</code></pre>

<p>This code will play the video when we click the load button and choose what video we want to play. However i want the video automatically choose the selected video after clicking the load button.</p>

<p>i try this code however the video its not even playing.</p>

<pre><code>private void loadButton_Click(object sender, EventArgs e)
{
    FileVideoSource fileSource = new FileVideoSource("C:\\Users\\videoplay.mp4");
    OpenVideoSource(fileSource);
}    
</code></pre>

<p>Please help me modifying the code. what did i do wrong?</p>
