Out of memory listbox-picture viewer
<p>Hey getting an out of memory issue when I click on an empty bitmap image.</p>

<pre><code>        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
    {



        //if (pictureBox1.Image != null)
        //   try
        //   {
                pictureBox1.Image = System.Drawing.Image.FromFile("C:/folder/" + listBox1.SelectedItem.ToString());

        //}

       //catch (NullReferenceException)
       //{

       //    MessageBox.Show("The image box is empty!");
       //}

    }
</code></pre>

<p>Ive attempted a try catch didnt work tho. Any help would be great thanks. </p>
