If you use the Win Forms PictureBox control on a form, you can set the SizeMode property on it to:
Stretching a picture (especially one in bitmap format) can produce a loss in image quality. Metafiles, which are lists of graphics instructions for drawing images at run time, are better suited for stretching than bitmaps are.
To set the SizeMode property at run time
[Visual Basic] Private Sub StretchPic() ' Change the path to a valid bitmap if needed: Dim path As String = "C:\Windows\Waves.bmp" ' Stretch the picture to fit the control. PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage ' Load the picture into the control. Set PictureBox1.Image = Image.LoadImage(path) End Sub [C#]
Loading a Picture at Design Time | PictureBox Control | Setting Pictures at Run Time