I'm not certain how to use the sender to distinguish between FTPConnection instances?
I basically create multiple instances like this:
foreach(var item in dgView.Rows) {
FTPConnection ftp = new FTPConnection();
//then I create the ftp events for BytesTransferred, Connected, Uploaded...
}
all instances of ftp use the same event handler for BytesTransferred, Connected, Uploaded...
So how do I use the sender object argument to distinguish which ftp instances caused the event?
Isn't that what you guys have the e.InstanceNumber and possible e.TaskID for? However as I said those are always -1?
Neal Davis