Re: using FtpServer com library in c# ? - WeOnlyDo Discussion board

Re: using FtpServer com library in c# ? (General questions)

by wodSupport, Sunday, December 04, 2005, 22:16 (6928 days ago) @ shady

Shady,

I don't know why you have problems. I just tried this in VS2003 and works without any problems. Here's relevant parts of the code: [code] wodFTPDComLib.wodFTPDCom Ftp1;

private void Form1_Load(object sender, System.EventArgs e)
{
Ftp1 = new wodFTPDComLib.wodFTPDComClass();
Ftp1.LoginPassword +=new wodFTPDComLib._IwodFTPDComEvents_LoginPasswordEventHandler(Ftp1_LoginPassword);
Ftp1.Start(21);
}

private void Ftp1_LoginPassword(wodFTPDComLib.FtpUser User, string Login, string Password, ref wodFTPDComLib.FtpActions Action)
{
Action = wodFTPDComLib.FtpActions.Allow;
}[/code]


Complete thread: