Using the Internet Transfer Control: Part 3
So, that's almost it. But one more thing, what if we want to create a COM object (say a class module) that encapsulates all of this logic to make an easy to use object for FTP? Will we have to add a form just for the control? Well, thanks to Chris Eastwood, we don't! He has gone through the MS documentation and extracted the Inet API calls, so all the functionality of the Inet control can be accessed through the Wininet DLL! And, even better, he has wrapped it up in a useful class module with some simple functions to operate an FTP program.
OK. Demo time. I was going to create demo project for this article, but then found someone already had. Matt Hart (www.matthart.com), a VB expert has written a good example of using the Inet control for FTP comms, and as long as you can stand his variable naming methods, then it should be very useful to you as a started project.
As you progress, you may want to use a treeview or a listview to display the contents of both the server and your users local hard disk. I suggest you check out all the tips we have on these controls, along with over 300 others: VB Square Tips!
Oops! Almost forgot about the demo projects!
Page 6 of 6