I am trying to create a form with a PictureBox of known size. I ran into problems, so I created a super-simple program to test things. First, I created a form and gave it a specific size. I also set:
Me.ControlBox = False
Me.Text = String.Empty
Me.FormBorderStyle = FormBorderStyle.None
since I assumed that these parameters could take up space. I then inserted a PictureBox on the form, it’s size being the same as the form and its offset being 0,0. I then inserted a bitmap image, of the same size, into the PictureBox.
When I ran this program, approximately 7.5% of the right side of the image was cropped and approximately 16.7% of the bottom side of the image was cropped.
Would you please point me to a resource which describes the maximum size of a picture box that can go into a form and other, related useful information. Thanks.