Quote Originally Posted by adamj12b
I understand about the threading. I have a display delegate that I think will be able to handle changing the progress bar. I use it to add the data to list box from the sockets and serial port. As for the transfers to a collection, Im not sure what your talking about so im going to say no. lol.
Hmm well lets ignore this part for a bit then, lets see if it works without it.
Quote Originally Posted by adamj12b
Also, I need to display the sent data on the sending side not the receiving side.
Then just do the modifications i showed you in the FileTransferReceive in the FileTransferSend class instead
Quote Originally Posted by adamj12b
One other thing, The raise events, how would you add code to them, so they execute it when that even happens? Like displaying a message when a transfer fails?
To add a handler for an event you use the AddHandler statement right after creating your FileTransferReceive/FileTransferSend class instance,
VB.NET Code:
  1. AddHandler transfer.TransferFailed, AddressOf TransferFailedHandler
  2.  
  3. Private Sub TransferFailedHandler(ByVal sender As FileTransferReceive, ByVal file As String)
  4.     'sender is a reference to the transfer that failed.
  5.     'file is the name of the file that didnt download properly.
  6. End Sub
In this case, TransferFailedHandler will be called everytime a TransferFailed event is raised. Just do the same on the other events, the only thing to keep in mind is that the eventhandlers signature must be identical with the events signature. In this case the signature is:
(ByVal sender As FileTransferReceive, ByVal file As String)
Quote Originally Posted by adamj12b
I think thats it for now. Thank you for putting up with my ignorance. -Adam
You're welcome.