My program hangs after a button is clicked
I am having trouble when my button is clicked, lets say it is a button which executes a function. I want the function to run only once when the button is clicked. When I click the button in my program now it runs the function then hangs and stop responding, I cant move it, minimize, close, etc. How do I prevent this?

Saillesh PawarRank #537 · 4.5K reputationPosted Mar 9, 2016, 5:09 AM EST
Levi Perry13 reputationPosted Mar 9, 2016, 5:53 AM EST
Saillesh PawarRank #537 · 4.5K reputationPosted Mar 9, 2016, 6:06 AM EST
http://www.dotnetperls.com/parameterizedthreadstart
Levi Perry13 reputationPosted Mar 9, 2016, 10:05 AM EST
Saillesh PawarRank #537 · 4.5K reputationPosted Mar 9, 2016, 6:21 PM EST
Rajeev PunhaniRank #551 · 4.4K reputationPosted Mar 9, 2016, 6:28 PM EST
Hi Levi,
Please see the link for example.
If the above solution is helpful then,accept the answer.
vipin kv116 reputationPosted Mar 10, 2016, 12:35 AM EST
Levi Perry13 reputationPosted Mar 10, 2016, 1:15 AM EST