3 Replies - 13206 Views - Last Post: 30 June 2010 - 10:31 PM Rate Topic: -----

#1 cutestjigs@yahoo.com  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 25-September 08

How to save image in vb.net?

Posted 30 June 2010 - 02:46 AM

How to create folder runtime in windows application and store image in that folder?
Is This A Good Question/Topic? 0
  • +

Replies To: How to save image in vb.net?

#2 Joshdw  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 225
  • Joined: 23-March 09

Re: How to save image in vb.net?

Posted 30 June 2010 - 04:47 AM

Try this (note i just wrote this by scratch, not on my programming pc atm, so double check it if possible)
Making Directory: (Folder)
Try
If Directory.exists(my.application.info.directorypath.tostring & "\Images\") = false then
directory.createdirectory(my.application.info.directorypath.tostring & "\Images\")

Catch ex as exception
msgbox("Error")
End Try

Saving files:
See http://www.vb-helper...avepicture.html
Was This Post Helpful? 0
  • +
  • -

#3 Guest_frednerk*


Reputation:

Re: How to save image in vb.net?

Posted 30 June 2010 - 01:03 PM

This works OK.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

My.Computer.FileSystem.CreateDirectory("C:\fred")


PictureBox1.Image.Save("C:\fred\bill.bmp")

End Sub
Was This Post Helpful? 0

#4 cutestjigs@yahoo.com  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 25-September 08

Re: How to save image in vb.net?

Posted 30 June 2010 - 10:31 PM

Thanks!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1