Quantcast
Channel: Problem with Screensaver
Viewing all articles
Browse latest Browse all 14

Problem with Screensaver

$
0
0

Hi Kruti_Shukla,

 

Base on my understanding of your post, you want to compile all these files into a single EXE file. The EXE file can be copied to different computer and run immediately. I don’t know how you create the ImageList. If you create all the image in your ImageList using Image.FromFile, you cannot build these image files into EXE. If you do that, the path is invalid and the image won’t be found.

 

I think you don’t need to make a single EXE file. What you want to do is make a normal EXE and put all the image files in the same folder as EXE file’s. Using

Code Snippet
Image img = Image.FromFile(Application.StartupPath + @"\a.jpg");

 

 

to create each image in your ImageList. When you copy the folder to another computer, it can be run immediately without being installated.

 

If I misunderstood something, please feel free to tell me.

 

Sincerely,

Kira Qian


Viewing all articles
Browse latest Browse all 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>