'Stop a function after a thread process is done runnig

i made a little GUI to take input from the user one of the main process is withing a thread and since that command starts there's an event that triggers an endless progress bar to simulate waitting time.

But i want to make it really usefull, but i can't find a way stop the progressbar when the process is done.

so any help on that, would be great.



Solution 1:[1]

You can place a return statement in the code that will be hit when the thread is done

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dr. Bright