Hi All,
I was wondering if anyone could tell me a better doing this.
I have a thousand image in each folder going from 0 to 999 and i want to be able to select an image in any folder and load it.
Thanks in advance for the reply. if (imageCounter_img2 > -1 && imageCounter_img2 < 999)
path_img2 = path_img2.Remove(path_img2.LastIndexOf('\\'));
path_img2 = path_img2 + "\\0";
imageCounter_img2 = imageCounter_img2 - 1000;
imageno_right.Text = path_img2;
imageno_right.Text = imageCounter_img2.ToString();
}
if (imageCounter_img2 >999 && imageCounter_img2 <1999)
{
path_img2 = path_img2.Remove(path_img2.LastIndexOf('\\'));
path_img2 = path_img2 + "\\1";
imageCounter_img2 = imageCounter_img2 - 1000;
dir_right.Text = path_img2;
imageno_right.Text = imageCounter_img2.ToString();
}
etc
Khan