BackGroundWorker.ReportProgress method doesn't accept strings

  • Thread starter Thread starter jimmy
  • Start date Start date
J

jimmy

Does someone know why BackGroundWorker.ReportProgress method doesn't
accept strings ?

You can't pass integer always for a progress meter as percentage
completed cannot be calculated in many tasks like logging on to a
remote computer. In that case, we would like just to show a message
"Logging on"....

Any ideas ??
 
The second paramter is an object, you can pass anything in it. I normally
pass a class which allows for more detail then a message but you could also
pass a stucture or just a string.

Regards,
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top