Adding a picture from a resource to a picture box
<p>I got this issue with displaying a image that i allready have added as a resource. I am guessing i am missing something vital but i cant find what it is. I am hoping that someone has a better idea of what i am doing wrong atm.</p>

<p>I have added an .bmp image into the solutiontree and changed the build action properties of that image to Embedded resource but i cant figure out how to call that image from the pipe?</p>

<p>as the user clicks a button the image should be sent to the imagebox, the code i have written so far looks like this:</p>

<p>this is ofs only the button_click code:</p>

<pre><code>     private void button1_Click(object sender, EventArgs e)
    {
        //Show image in the picturebox of selected cake   

        Image image = Image.FromFile(fruitcake.jpg);
        pictbox.Image = image;
        pictbox.Height = 163;
        pictbox.Width = 223;
        choice = 1;
        lblCookiesPerGram.Text = string.Empty;           
    }
</code></pre>

<p>Anyone has an idea of what i am doing wrong or can i do this in another war? mind thou its 4 buttons the user clicks and there is a image for each one ;)</p>

<p>//Regards </p>
