Percentage sizing code .NET
I have an image on my .NET windows form, and I want to scale it by a percentage, that way it can fit properly in any window size. I got bard to put some code in, but the variable 'image' is valued as null. How do I fix this to get it working? (The image is picturebox1)
https://pastebin.com/91D1Xrkn
Pastebin
code - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
1 Reply
have you tried inspecting the picturebox properties at the point of the error? is everything empty?