I'm a beginner with C# so maybe I don't really understand why I have this error.
System.InvalidOperationException: Cross-thread operation not valid: Control 'lstb_files_r' accessed from a thread other than the thread it was created on.
This is what I'm doing:
- I drop X csv.
- I read the first one (
lstb_files_r.SelectedIndex = i;
) - after finishing I would like to read the 2nd (i++). But I have this error...
Can someone explain to me how can I solve that please ?