Click here to Skip to main content
15,890,982 members
Home / Discussions / C#
   

C#

 
GeneralRe: Cant access the menu item Pin
Muammar©27-Jan-10 1:11
Muammar©27-Jan-10 1:11 
GeneralRe: Cant access the menu item Pin
OriginalGriff27-Jan-10 1:34
mveOriginalGriff27-Jan-10 1:34 
GeneralRe: Cant access the menu item Pin
Muammar©27-Jan-10 3:16
Muammar©27-Jan-10 3:16 
GeneralRe: Cant access the menu item Pin
Muammar©27-Jan-10 3:32
Muammar©27-Jan-10 3:32 
QuestionCrystal Report Pin
mjawadkhatri26-Jan-10 21:41
mjawadkhatri26-Jan-10 21:41 
Questionget files one by one in the lable Pin
tanweer26-Jan-10 21:31
tanweer26-Jan-10 21:31 
AnswerRe: get files one by one in the lable Pin
sanforjackass26-Jan-10 21:40
sanforjackass26-Jan-10 21:40 
GeneralRe: get files one by one in the lable Pin
tanweer26-Jan-10 21:55
tanweer26-Jan-10 21:55 
thanks sir


but exactly what i need is
the files name
of the dir. is just kike the anti virus file scane
looks
that is file name
and the path is showing in the lable might be using timerin it


private void button1_Click(object sender, EventArgs e)
{
timer1.Start();
timer1.Interval = 2000;
}
private void timer1_Tick(object sender, EventArgs e)
{


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


whatis the problem in it

this shows only the last file of the dir.
GeneralRe: get files one by one in the lable Pin
sanforjackass26-Jan-10 21:59
sanforjackass26-Jan-10 21:59 
GeneralRe: get files one by one in the lable Pin
tanweer26-Jan-10 22:05
tanweer26-Jan-10 22:05 
GeneralRe: get files one by one in the lable Pin
sanforjackass26-Jan-10 22:18
sanforjackass26-Jan-10 22:18 
GeneralRe: get files one by one in the lable Pin
OriginalGriff26-Jan-10 22:10
mveOriginalGriff26-Jan-10 22:10 
Questiondatagridview scrolling Pin
prithaa26-Jan-10 20:26
prithaa26-Jan-10 20:26 
QuestionEventHandler for Textbox Pin
Anu_Bala26-Jan-10 20:21
Anu_Bala26-Jan-10 20:21 
QuestionThread issue Pin
Mycroft Holmes26-Jan-10 18:50
professionalMycroft Holmes26-Jan-10 18:50 
AnswerRe: Thread issue Pin
Rob Philpott26-Jan-10 20:52
Rob Philpott26-Jan-10 20:52 
GeneralRe: Thread issue Pin
Mycroft Holmes26-Jan-10 21:04
professionalMycroft Holmes26-Jan-10 21:04 
GeneralRe: Thread issue Pin
David Skelly26-Jan-10 22:18
David Skelly26-Jan-10 22:18 
Questionre:vs C# versus vsC++ Pin
Alan Kurlansky26-Jan-10 17:28
Alan Kurlansky26-Jan-10 17:28 
AnswerRe: re:vs C# versus vsC++ Pin
tolw26-Jan-10 19:56
tolw26-Jan-10 19:56 
GeneralRe: re:vs C# versus vsC++ Pin
Alan Kurlansky27-Jan-10 4:08
Alan Kurlansky27-Jan-10 4:08 
GeneralRe: re:vs C# versus vsC++ Pin
tolw27-Jan-10 6:14
tolw27-Jan-10 6:14 
Questionregex help Pin
uglyeyes26-Jan-10 13:34
uglyeyes26-Jan-10 13:34 
Answerrepost Pin
Luc Pattyn26-Jan-10 13:40
sitebuilderLuc Pattyn26-Jan-10 13:40 
AnswerRe: regex help Pin
vivasaayi26-Jan-10 18:19
vivasaayi26-Jan-10 18:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.