G
Guest
Hi there
I have a background image that I'm trying to place on a Panel. I'm trying to resize the image to fit the size of the panel but the image's size is read only. How do I make the picture always resize to the size of the panel? Is there a way of doing this
Here's a sample of my code
panel1.BackgroundImage = (Image.FromFile("C:\\bitmap1.bmp")
//panel1.BackgroundImage.Size = panel1.Size; //this does not work as the Size is Read Only.... How do I do this
Thanks for your help in advance
Tom.
I have a background image that I'm trying to place on a Panel. I'm trying to resize the image to fit the size of the panel but the image's size is read only. How do I make the picture always resize to the size of the panel? Is there a way of doing this
Here's a sample of my code
panel1.BackgroundImage = (Image.FromFile("C:\\bitmap1.bmp")
//panel1.BackgroundImage.Size = panel1.Size; //this does not work as the Size is Read Only.... How do I do this
Thanks for your help in advance
Tom.