picture browser

dilipreddi

Member
Joined
Aug 17, 2006
Messages
6
Programming Experience
Beginner
Can I have the code for a picture browser
that displays the picture in any drive into the picture box
 
there are many ways of doing this: first off do you want it to display all the pictures in a folder all at once or sequentially one at a time?

but to get the files in a folder use: System.IO.Directory.GetFileSystemEntries("Directory path")
 
thanx you
I have done 90 percent of the code

Picture1.Image = LoadPicture(Text1.Text)

here the function "LoadPicture " is showing to have a buil error which sayss that LoadPicture is not declared

Wat is this error

LoadPicture is inbuilt command so how do i declare it
plzz let me know

I'm new to Vb.net
 
i never heard of a LoadPicture command, but i'm pretty sure there is Image.FromFile() method to load an image, just pass it the FileSystemEntry once you've checked that it's indeed an image
 
Back
Top