loyal Posted August 31, 2003 Posted August 31, 2003 I am trying to save a picture that resided in PictureBox called picBox And here�s the code (I am not sure that It used like this ) ' On Button's Click Event Dim sr As System.IO.StreamWriter With PictureSaveFileDialog .Filter = "Image Files(*.JPG) |*.jpg" If .ShowDialog = DialogResult.OK Then sr = New StreamWriter(.FileName) sr.Write(Me.picBox.Image) End If End With it saves an Image with No preview Available :confused: please how can I correct this ? bye Quote Gary Says: To be a good programmer, you must be good at debugging
*Experts* mutant Posted September 1, 2003 *Experts* Posted September 1, 2003 You the Save() method of the Image class: PicBox.Image.Save("path") Quote
loyal Posted September 1, 2003 Author Posted September 1, 2003 thanks it works now does that mean I don't need streamWriter at least in this process ? Quote Gary Says: To be a good programmer, you must be good at debugging
*Experts* Bucky Posted September 1, 2003 *Experts* Posted September 1, 2003 Right; you do not need the StreamWriter. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
loyal Posted September 1, 2003 Author Posted September 1, 2003 Thanks Bucky Quote Gary Says: To be a good programmer, you must be good at debugging
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.