February 24, 2021
Hot Topics:

Using the Internet Transfer Control: Part 3

  • By Sam Huggill
  • Send Email »
  • More Articles »

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!

Click here to download the FTP demo from the Development Exchange.
Get the FTP Class module!

Page 6 of 6

This article was originally published on November 20, 2002

Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Thanks for your registration, follow us on our social networks to keep up-to-date