Now i did a double click event of picturebox1 and when you click double on the picturebox1 its openning a new form.
On the new form i added a split container on the right i added some labels buttons....on the left on panel1 i added a picturebox and did the picturebox to be Dock FILL!
Now i created on the new form code a function that will get the images from form1 and put it in the new form picturebox1 on panel1.
In the new form i want the picturebox1 to be on all over the panel1 thats why i set it to dock.FILL!
But when i see the image in the new form i see it on the same size as it in form1 and only on the left corner of the new form.
I want to see it in the new form all over panel1 thats why i did it DOCK FILL. But the image or the picturebox for some reason show the image only on the left corner side and not on all the panel1
This is the code of the new form:
Expand|Select|Wrap|Line Numbers
- public PictureBox picturebox1(PictureBox pb1)
- {
- pictureBox1.Image = pb1.Image;
- return pictureBox1;
- }
Expand|Select|Wrap|Line Numbers
- private void pictureBox1_DoubleClick_1(object sender, EventArgs e)
- {
- pb1_fs = new Picturebox1_Fullscreen();
- pb1_fs.Show();
- pb1_fs.WindowState = FormWindowState.Maximized;
- pb1_fs.picturebox1(pictureBox1);
- pb1_fs.FormClosing += new FormClosingEventHandler(pb1_fs_FormClosing);
- }
Why the image in the new form isnt all over the panel1 area ? I thought if i did the picturebox1 in the new form to be dock fill on the panel1 it will show the image all over it but it dosent.