An unhandled exception of type 'System.ArgumentException' occurred
<p>An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll , Additional information: The path is not of a legal form. Error only occurs after it's being pressed for the second time after closing the window . </p>

<p>Heres code:</p>

<pre><code>        private void button1_Click(object sender, EventArgs e)
    {
        OpenFileDialog OpenFd = new OpenFileDialog();
        OpenFd.Filter = "Images only. |*.jpg; *.jpeg; *.png; *.gif;";

        DialogResult dr = OpenFd.ShowDialog();
        pictureBox1.Image = Image.FromFile(OpenFd.FileName);
        ItemUrl.Text = OpenFd.FileName;


    }
</code></pre>