Caroline M
Member
- Joined
- Jul 13, 2021
- Messages
- 17
- Programming Experience
- 1-3
Hello! So, i need know how i make for i attach one PictureBox and move this image, from a PictureBox1 from Form1 to another PictureBox from a Form2 from the Form3. I gonna use the OpenFileDialog1 and i gonna use this method for attach the images from the Form.
How i make this?
I need the code in C#, please
I gonna show a portion code, in my application:
private void button2_Click(object sender, Events Args e)
{
OpenFileDialog foto = new OpenFileDialog();
if (foto.ShowDialog() == DialogResult.OK)
{
pictureBox1.Image = Image = Image.FromFile(foto.Filename);
}
}
-----------------------------------------------------------------------------------------------------
Now i need make this code work and run, using this method, but, attach, in the Form2 and in the Form3, all right?
How i make this?
I need the code in C#, please
I gonna show a portion code, in my application:
private void button2_Click(object sender, Events Args e)
{
OpenFileDialog foto = new OpenFileDialog();
if (foto.ShowDialog() == DialogResult.OK)
{
pictureBox1.Image = Image = Image.FromFile(foto.Filename);
}
}
-----------------------------------------------------------------------------------------------------
Now i need make this code work and run, using this method, but, attach, in the Form2 and in the Form3, all right?