0

I am in wonder.
I just make a slideshow form and add the context menu strip as when the user click on download image then current image get copy and paste on the desktop.

I use path and destination method in this
but they say bitmap cannot be converted into the string.

Original Code:

Dim Path as string = "Path directory" } `my.resources._1`
Dim destination as string = "Detination Directory"
If File.Exists(path) And Not File.Exists(destination) Then
File.Copy(path, destination)

Replace code (try):

Dim Path as bitmap = "Path directory"  } `my.resources._1`
Dim destination as string = "Detination Directory"
If File.Exists(path) And Not File.Exists(destination) Then
File.Copy(path, destination)

Please help me as fast as possible

2
Contributors
4
Replies
21
Views
4 Years
Discussion Span
Last Post by DM Galaxy
0

Just use the my.Resources._1 call to get the path:

   Dim sDest As String = My.Computer.FileSystem.SpecialDirectories.Desktop
   My.Resources._1.Save(sDest)
0

Oh boy! GDI+ error! Love GDI+ generic errors! (rolls eyes)

What does veiw details say?

Edited by Begginnerdev

0

if possible then can you please create this portion project.
And send me that file from Files.
so that I can understan the codes as well as the full project.

I am not able to know what that says me after clicking (View Details)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.