Alan Bugeja

Alan Bugeja

  • NA
  • 5
  • 0

C# Network Stream

Apr 12 2006 6:53 PM
I have a client/Server application for transfering a file. Im using NetworkStream, streamreaders and streamwriters to send and receive data. On the client side i need to make a progress bar. I am settings the progressbar maximum according to the file selected .. (File.Lenght) then i need the number of bytes being sent to increment the progress bar. i tried to use performance counter but wasnt returning the correct value. How can i solve this? How can i get the Bytes/Sent per second for example. Thx