Ok i think i know whats wrong here
i think that the files are not registering in the array - what you said
private void FindFiles(object sender, EventArgs e)
{
try
{
m_ftp.Server = txtftpServerName.Text;
m_ftp.Username = txtftpUserName.Text;
m_ftp.Password = txtftpPassword.Text;
m_ftp.Login();
m_ftp.ChangeDir(txtToDirectory.Text);
string[] fi = m_ftp.GetFileList();
cboFindFile.Items.AddRange(fi);
m_ftp.Close();
}
catch(Exception EX)
{
MessageBox.Show("File Not Downloaded");
}
}
I dont even have a loop there but it works exactly the same ...
Last edited by cVz; Jan 8th, 2009 at 9:30 am.
Delphi & C# programmer deluxe...