How to navigate inside a folder from picture to picture
-
Hello I need to view pictures of a file now this file has many pictures i need a way to access the first picture then navigate to the last one, the problem is that the images are not numeric named so i cant increment number to access the other image please help.
-
Hello I need to view pictures of a file now this file has many pictures i need a way to access the first picture then navigate to the last one, the problem is that the images are not numeric named so i cant increment number to access the other image please help.
What have you tried? What are they named? Do you have an index of some sort?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones
-
Hello I need to view pictures of a file now this file has many pictures i need a way to access the first picture then navigate to the last one, the problem is that the images are not numeric named so i cant increment number to access the other image please help.
string[] picFiles = Directory.GetFiles(@"D:\PICS");
foreach (string picFile in picFiles)
{
pictureBox1.Image = Image.FromFile(picFile);
MessageBox.Show("Press OK for next picture...");
}The pictures are unsorted. If you don't have any index, then sort "picFiles" to date and time.
-
Hello I need to view pictures of a file now this file has many pictures i need a way to access the first picture then navigate to the last one, the problem is that the images are not numeric named so i cant increment number to access the other image please help.
Hello, there is no need to put Bold on entire message. Your question conflicts with the title. Are you looking for next image in same folder or are you looking how to get next frame in Animated Image (GIF)? EDIT: I didn't saw other post, because my Firefox has cached and i saw old page. You don't need to know names of file. You can actualy parse the order. You coud by Character code. Also if you chose by date time, it desn't mean it will be accurate. If it was taken by camera, and you change batteries, there is possible date information could reset and new files coud have wrong DateTime
-
What have you tried? What are they named? Do you have an index of some sort?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones
-
Hello I need to view pictures of a file now this file has many pictures i need a way to access the first picture then navigate to the last one, the problem is that the images are not numeric named so i cant increment number to access the other image please help.
well guys my testing on directoryInfo have seeded now i got the names of the picture now all i have to do is to change from one pic to onther in a web form. could any body suggest how to make that happen i was thinking of making a panel that changes its directory by either clicking forward or backward but how i could change a paned directory is ther something as a panel directory?? Or how about an update panel inside it there is a picture were i assign the picture every time i click.?
-
i am trying DirectoryInfo class to get the files inside of it in file info array then i would iterate around them but am facing problems you cant know what the names of the picture bcz it is the client's disicion and there is no index or sort.
Then you will have to sort them by name, or create date. If the user doesn't catch on fairly quickly that sequential naming is a good idea if you want to find things, then spell it out to him when he compains...
DirectoryInfo di = new DirectoryInfo(@"c:\\XXTemp"); FileInfo\[\] fil = di.GetFiles();
is the way to go.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones