I have a form that has various pictureboxes that are populated by the user. Once the form has all the pictureboxes full, the user needs to save the whole form and its contents as a jpg. The only problem is that the only thing that is saved is the picturebox.1.
I can see that in Case 1 section I am telling the program to save the PictureBox1 in form 2 but I want it to merge all the PictureBoxs in form 2 and save as a jpg. Can anyone tell me where I am going wrong
Dim saveFileDialog1 AsNew SaveFileDialog()
saveFileDialog1.Filter = "JPeg Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif"
saveFileDialog1.Title = "Save an Image File"
' If the file name is not an empty string open it for saving.If saveFileDialog1.FileName <> ""Then' Saves the Image via a FileStream created by the OpenFile method.Dim fs As System.IO.FileStream = CType _
' Saves the Image in the appropriate ImageFormat based upon the' file type selected in the dialog box.' NOTE that the FilterIndex property is one-based.SelectCase saveFileDialog1.FilterIndex