I've a form with a picturebox control in it. The picturebox.autosize value is true, so after loading the jpg in picture1 I want to automatically resize form to adjust to the picture1 height and width.

How can I accomplish that?
Because I've tried different ways and I get another size of the form.

Just one note, form.borderstyle = fixed single.

form is mdichild.