Jump to content
  • Advertisement
Sign in to follow this  
softengg

[.net] Progress bar in the WCF Client application

This topic is 3779 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am new to the WCF and in my WPF application, i am writing a new WCF Client class to access a WCF Web service. I am sending/getting some datas to and from a WCF web service. How do i know the time in advance to access the web service. so that i can set this time to as my progress bar's maximum value. My requirement is to set a progress bar in my WPF windows application, to indicate the progression of the process (WCF Client to access and do some operations and return the value). My WCF Client is a .dll and am using this .dll in my WPF application. Please help me.......... Thanks in advance....

Share this post


Link to post
Share on other sites
Advertisement
There is no way to know the time, due to internet lag and other things. But you can know how much data is being passed. So just calculate how much data is going to be transfered and use that or a factor of that as the max. Then as you get each chunk update the progress bar.

theTroll

Share this post


Link to post
Share on other sites
Hello,

i had this problem some time ago, too. Our solution was to just let a small line cycle around in the progress bar to let the user know that there is something happaning. Also we set a timoutvalue depending from the size of data we expected.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!