c# - listening for click event in a form from another thread -


OK, I have a button and a combobox form, when I load the form I start a new thread In that thread, I want to hear from the form for click event and I want to get the selected item from the cumbobox. What is the best way to go about doing this?

If you click on some long-running CPU on the expensive processing button, The time when the button is clicked will recommend starting a new thread. The best way is to hear click events in the main thread, and when the event will fire - then start a new thread and pass the selected value.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -