0
Reply

C# Network Stream

Alan Bugeja

Alan Bugeja

Apr 12 2006 6:53 PM
2.6k
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