There is an article on CodeProject that has code for a managed component that you can use.
FTP component on Codeproject