Hi
I have a winform app in c# with 2 forms.
in form 1 the user selects an image from a picturebox and after clicking next that image is displayed in form 2 with a bunch of new information.
This works but i have a problem, with the code i have the image is copied instead of opened again in form 2. If i publish the app i get an error in form 2 saying that the image file could not be found in the folder ..@/Images/
witch is created when i debug but not when i publish, so if the app opens the same file instead of copying it, it should work... i think.
The the image in form1 comes from a picturebox and is added in the designer.
The code i use is the following:
FORM 1:
private void button1_Click(object sender, EventArgs e)
{
if (radioButton1.Checked)
build build = new build("@../Images/JAF.jpg", "item description", "c1");
build.ShowDialog();
What I have tried:
FORM 2:
public build(string img_from_A, string desc, string id)
{
InitializeComponent();
pictureBox2.Load(img_from_A);
desc1.Text = desc;
this.prumos = id;