Link to home
Start Free TrialLog in
Avatar of Artic
ArticFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How do you get the combobox selected item in a separate thread in C#?

How do you get the combobox's selected item from a separate thread in C#?

Thanks in anticipation.
ASKER CERTIFIED SOLUTION
Avatar of nffvrxqgrcfqvvc
nffvrxqgrcfqvvc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AndyAinscow
Because you specifically have multiple threads then you need to be certain the value isn't being changed whilst the thread is running (and wanting to get the value).

Have a think about your logic - maybe you need to store the value of the combobox and pass it to the thread rather than the thread requesting the value.
Avatar of Artic

ASKER

Is it possible to pass in the name of the comobox so that the method can be applied to different comboboxes?

Thanks in anticipation.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Artic

ASKER

Thanks!