How to create folder runtime in windows application and store image in that folder?
How to save image in vb.net?
Page 1 of 13 Replies - 9246 Views - Last Post: 30 June 2010 - 10:31 PM
Replies To: How to save image in vb.net?
#2
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)
Saving files:
See http://www.vb-helper...avepicture.html
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
#3 Guest_frednerk*
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
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
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|