Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Gary Says: To be a good programmer, you must be good at debugging
Posted

thanks it works now

 

does that mean I don't need streamWriter

 

at least in this process ?

Gary Says: To be a good programmer, you must be good at debugging
  • *Experts*
Posted
Right; you do not need the StreamWriter.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...