Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42441

For All Images in a folder

$
0
0
Hi

I have a folder on my desktop.

This is what I am trying to do

Code:

dim x as integer = 0
dim y as integer = All images in Folder
For image x to y,
Picturebox1.image = image(x)
x = x+1

interval: 5 seconds

I think I am on the right track? I just can't get the right code to work.

basically, I want to assign all images in the folder to 1 picturebox (with like interval).. So it will turn into something like an automatic photo frame?

Thanks in advance :thumb:

Viewing all articles
Browse latest Browse all 42441

Trending Articles