Hello fellow super coder people
i am rtying to list all the files in a certain directory (eg. "TestDir") in a combobox
try
{
m_ftp.Server = txtftpServerName.Text;
m_ftp.Username = txtftpUserName.Text;
m_ftp.Password = txtftpPassword.Text;
m_ftp.Login();
string[] The_File = m_ftp.GetFileList("TestDir");
foreach (string FILE in The_File)
{
cboFindFile.Items.Add(FILE);
Console.Write(FILE);
}
m_ftp.Close();
}
catch(Exception EX)
{
MessageBox.Show("Files Not Downloaded");
}
That only downloads one file into the combobox ...
Any ideas ???
please help...
Regards and thanks...