P
Pums
I am writing a code to resize an image to fit in the
picturebox so that the length/ height ratio of the image
remains same. so, i have written one function to resize
image and in that function initially i am always
restoring the picturebox size initially.
Now the problem is every time i want to resize the
picturebox in design time it's calling that function and
so, it doesn't get resized.
So, how should i solve this? so, that when image is
changes then only resize picturebox is called, not when
the image is null or same.
picturebox so that the length/ height ratio of the image
remains same. so, i have written one function to resize
image and in that function initially i am always
restoring the picturebox size initially.
Now the problem is every time i want to resize the
picturebox in design time it's calling that function and
so, it doesn't get resized.
So, how should i solve this? so, that when image is
changes then only resize picturebox is called, not when
the image is null or same.