Member Avatar for DyO1

Hello,

I need a code for saving BackgroundImage from PictureBox1 with SaveFileDialog1.

Please help me (I can't find the code) .

Hi,
It is easier if you try and break it down into steps:

  1. Access the image from the picturebox - look up picture box class properties
  2. Select where to save the image to via filedialog - lookup the save file dialog in google
  3. Save / Write the image to the chosen location - you will have to copy or stream the file...
PictureBox1.BackgroundImage.Save(filename)

Should work, haven't tried it myself.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.