Re: Picture Viewer Question
It will be better if you don't hardcode anything like "All Grandchildren" or "C:\Pictures\". If you are planning to distribute this application then your friends may not be having Grandchildren or may not be having C drive in the hard disk.
Re: Picture Viewer Question
1. It would be better if you use List(Of Image) type instead of ArrayList (no casting would be needed)
2. Also use My.Computer.FileSystem.SpecialDirectories.Desktop & "Image\" & imageName (where "Image" is the folder)
3. Also, I would shorten the code since most of them in the If statement are the same.
Re: Picture Viewer Question
I can’t figure out why you use Case statement since you only request .jpg files. Am I missing something?
Re: Picture Viewer Question
Deepak. All Grandchildren comes from a text file in the pictures folder. It also contains all the names of the grandchildren, this way the list can be added to and the combo box will add the new names. Remember these are pictures of my grandchildren. I originally had the pictures in separate folders for each child, and could fill the combo box with the folder names, but could not incorporate "All Grandchildren" into the datasource for the combo box.
VBDT. I got this code from searching the forum, and it was one of the xamples I came up with. I have a sample with List(Of Image), I will try that instead. The select case was in the original code, I guess I can remove it since I only plan on using jpgs.
Thanks for your comments.