Do you follow what I'm suggesting. You would place the picturebox in some container that defines the certain rectangle. Set the Picturebox SizeMode to Stretch and give it a border. The code works like the Zoom SizeMode except it alters the size and position of the picturebox rather than its image.