View Single Post
Join Date: Mar 2008
Posts: 136
Reputation: cVz is an unknown quantity at this point 
Solved Threads: 7
cVz's Avatar
cVz cVz is offline Offline
Junior Poster

Re: Server Files in Combobox ??

 
0
  #9
Jan 8th, 2009
Ok i think i know whats wrong here

i think that the files are not registering in the array - what you said

  1. private void FindFiles(object sender, EventArgs e)
  2. {
  3. try
  4. {
  5. m_ftp.Server = txtftpServerName.Text;
  6. m_ftp.Username = txtftpUserName.Text;
  7. m_ftp.Password = txtftpPassword.Text;
  8.  
  9. m_ftp.Login();
  10.  
  11. m_ftp.ChangeDir(txtToDirectory.Text);
  12.  
  13. string[] fi = m_ftp.GetFileList();
  14.  
  15. cboFindFile.Items.AddRange(fi);
  16.  
  17. m_ftp.Close();
  18. }
  19. catch(Exception EX)
  20. {
  21. MessageBox.Show("File Not Downloaded");
  22. }
  23. }

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...
Reply With Quote