Re: SessionFileTransferProgress - show filename/progress on form
I'm sorry, but your question is out of scope of this forum.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
private static void SessionFileTransferProgress(object sender, FileTransferProgressEventArgs e)
{
// New line for every new file
if ((_lastFileName != null) && (_lastFileName != e.FileName))
{
System.Diagnostics.Debug.WriteLine("~~~~~~");
}
// Print transfer progress
System.Diagnostics.Debug.WriteLine("\r{0} ({1:P0})", e.FileName, e.FileProgress);
// Remember a name of the last file reported
_lastFileName = e.FileName;
_lastFileProgress = e.FileProgress
}