// Disconnect from the FTP server ftp.Disconnect(); } catch( System.Runtime.InteropServices.COMException except ) { MessageBox.Show( except.ToString() ); }
// In this event we will right the name of each item into a listbox located on our form. private void ftp_ListingFolderItem( string name, DateTime date, int fileSize, XceedFtpLib.EXFFolderItemType itemType, string userData ) { listBox1.Items.Add( name ); }