Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.5k views
in .NET FTP by (180 points)
Hi,

I made it very fast to write an .NET application that checks a FTP server for new files and loads them down...thanks a lot to this great edtftp.dll!

My question now is: How can i print the server replies to a rich text box in my form the easiest way? I tried to understand the docs about standard .NET events, but my programming knowledge isn't that far at the moment...

Thanks a lot!

2 Answers

0 votes
by (162k points)
You will need to look at the FTPMessageHandler.

Hi,

I made it very fast to write an .NET application that checks a FTP server for new files and loads them down...thanks a lot to this great edtftp.dll!

My question now is: How can i print the server replies to a rich text box in my form the easiest way? I tried to understand the docs about standard .NET events, but my programming knowledge isn't that far at the moment...

Thanks a lot!
0 votes
by (180 points)
Thanks..I already solved this thing:

I added the following lines to my 'form1' after generating the FTPClient object 'ftp':

ftp.ReplyReceived +=new FTPMessageHandler(ftp_ReplyReceived);
ftp.CommandSent +=new FTPMessageHandler(ftp_CommandSent);

and then later on:

private void ftp_ReplyReceived(object ftpClient, FTPMessageEventArgs message)
{
//Write 'message.Message' somewhere
}

private void ftp_CommandSent(object ftpClient, FTPMessageEventArgs message)
{
//Write 'message.Message' somewhere
}

Thanks again and bye!

Categories

...