Threading with Callback example does not work.
问题 I am working on this example, but I am unable to mesh the callback and the threading. What I want is this. 1) Press button 2) Start the progress bar running 3) Call to a new thread to perform some long running process 4) A callback on the long running process should trigger the progress bar to stop. Below I have something...Although the callback parameter for DoSomethingInThread comes in as null. The StopProgressBar() acts on the ProgressBar control, so it cannot be static. static bool done;