Question Preloading images in another folder into application before loading

Untamed

Well-known member
Joined
Jul 25, 2009
Messages
53
Programming Experience
5-10
Hello, I am wondering if it is possible, and how would I, preload images into my application.

Let me explain more.
I have several images in MyProgramFolder/images folder.
When I load up my application, it immediately calls those. It also calls some when it loads up a different form.

To load them, I do this
PictureBox1.ImageLocation = *imagelocationhere*

My problem is, the images remain blank for a second or two until they load.
How do I make them load virtually instantaneously? Thanks!
 
These are pretty small and as JM mentioned above shouldnt cause a delay. Are the pictures constant or something the user can add/change during the running of the program? I would say add them to the resource file and load them from there.
 
Back
Top