Click here to Skip to main content
15,915,703 members
Home / Discussions / C#
   

C#

 
QuestionExecute smtpclient authenticate method from reflection? Pin
ankit_verma26-Jan-10 23:14
ankit_verma26-Jan-10 23:14 
AnswerRe: Execute smtpclient authenticate method from reflection? Pin
SeMartens26-Jan-10 23:45
SeMartens26-Jan-10 23:45 
GeneralRe: Execute smtpclient authenticate method from reflection? Pin
ankit_verma26-Jan-10 23:48
ankit_verma26-Jan-10 23:48 
GeneralRe: Execute smtpclient authenticate method from reflection? Pin
SeMartens26-Jan-10 23:53
SeMartens26-Jan-10 23:53 
GeneralRe: Execute smtpclient authenticate method from reflection? Pin
ankit_verma27-Jan-10 0:10
ankit_verma27-Jan-10 0:10 
GeneralRe: Execute smtpclient authenticate method from reflection? Pin
SeMartens27-Jan-10 0:17
SeMartens27-Jan-10 0:17 
GeneralRe: Execute smtpclient authenticate method from reflection? Pin
ankit_verma27-Jan-10 0:23
ankit_verma27-Jan-10 0:23 
GeneralRe: Execute smtpclient authenticate method from reflection? Pin
SeMartens27-Jan-10 0:31
SeMartens27-Jan-10 0:31 
GeneralRe: Execute smtpclient authenticate method from reflection? Pin
ankit_verma27-Jan-10 0:40
ankit_verma27-Jan-10 0:40 
Questioniterating listview Pin
Member 59031026-Jan-10 22:37
Member 59031026-Jan-10 22:37 
AnswerRe: iterating listview Pin
sanforjackass26-Jan-10 22:47
sanforjackass26-Jan-10 22:47 
AnswerRe: iterating listview Pin
Rob Philpott26-Jan-10 22:54
Rob Philpott26-Jan-10 22:54 
Questioninserting item into list box Pin
tanweer26-Jan-10 22:03
tanweer26-Jan-10 22:03 
AnswerRe: inserting item into list box Pin
Harvey Saayman26-Jan-10 22:19
Harvey Saayman26-Jan-10 22:19 
AnswerRe: inserting item into list box Pin
OriginalGriff26-Jan-10 22:25
mveOriginalGriff26-Jan-10 22:25 
QuestionCant access the menu item Pin
Muammar©26-Jan-10 21:46
Muammar©26-Jan-10 21:46 
AnswerRe: Cant access the menu item Pin
OriginalGriff26-Jan-10 22:01
mveOriginalGriff26-Jan-10 22:01 
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.

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.