Cross Thread operation not valid: control 'CardStatusField' acessed from a thread other than the thr
The issue occurs in the function CardInsertedAction, when running CardStatusField.Text - .........
Can i bring this into the context of just running on new NFCReader.CardEventHandler? It wants an Object in this.
Or can i combat it within this function?
5 Replies
You are probably dealing with multiple threads here
The UI (
CardStatusField.Text
) can only be updated from the UI thread
You can use the invoke mechanism to trigger updatesStack Overflow
Invoke(Delegate)
Can anybody please explain this statement written on this link
Invoke(Delegate):
Executes the specified delegate on the thread that owns the control's underlying window handle.
Can anybody explain
^ Example
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.thanks!