this is in windows project
i have one form which has a progress bar
from that i am calling a class file which has decrypting function in it while it performs decryption of a file i want to show the progress of decryption in my form

now how do i fetch the values from class file
i tried using return, from which i got the value back but the remaining function execution in the class file halted because it returned value

i even tried is there a way to access the progress bar in class file
which also failed

any answer for this solution

7 Years
Discussion Span
Last Post by Geekitygeek

send the progressbar object as a parameter when calling the descript function

Votes + Comments
Good suggestion.

I'll second the BackgroundWorker. By running the decryption in a background worker it wont lock up your UI thread, and turning on ReportsProgress will allow you to relay the data back tou your main form to update the progress bar.

Votes + Comments
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.