المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : get files one by one in the lable



C# Programming
01-28-2010, 01:50 PM
hello every body
i want to get the file list one by one in a lable giving path of the folder of the file using this code but it does not work


for (int i = 0; i < Directory.GetFiles(textBox1.Text).Length - 1; i++)
{
object[] file=Directory.GetFiles(textBox1.Text+@"\");
label2.Text = file[i].ToString();
}


can any body
explain me