'Open Image Button, Button1: '___________________________ Try If OpenFileDialog1.ShowDialog() = DialogResult.OK Then PictureBox1.Image = System.Drawing.Image.FromFile(OpenFileDialog1.FileName) End If Catch ex As Exception End Try '______________________ 'Convert Image-Button2: '______________________ If ComboBox1.SelectedItem = "JPEG" Then Try SaveFileDialog1.Filter = "JPEG |*.jpeg" If SaveFileDialog1.ShowDialog() = DialogResult.OK Then PictureBox1.Image.Save(SaveFileDialog1.FileName, System.Drawing.Imaging.ImageFormat.Jpeg) End If Catch ex As Exception End Try End If If ComboBox1.SelectedItem = "PNG" Then Try SaveFileDialog1.Filter = "PNG |*.png" If SaveFileDialog1.ShowDialog() = DialogResult.OK Then PictureBox1.Image.Save(SaveFileDialog1.FileName, System.Drawing.Imaging.ImageFormat.Png) End If Catch ex As Exception End Try End If If ComboBox1.SelectedItem = "GIF" Then Try SaveFileDialog1.Filter = "GIF |*.gif" If SaveFileDialog1.ShowDialog() = DialogResult.OK Then PictureBox1.Image.Save(SaveFileDialog1.FileName, System.Drawing.Imaging.ImageFormat.Gif) End If Catch ex As Exception End Try End If If ComboBox1.SelectedItem = "BMP" Then Try SaveFileDialog1.Filter = "BMP |*.bmp" If SaveFileDialog1.ShowDialog() = DialogResult.OK Then PictureBox1.Image.Save(SaveFileDialog1.FileName, System.Drawing.Imaging.ImageFormat.Bmp) End If Catch ex As Exception End Try End If '___________________________ 'This Goes under form1_load: '___________________________ ComboBox1.SelectedItem = "PNG"