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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -