T
TC
I'm getting a "Cross-thread operation not valid" error. Unfortunately,
when Visual Studio reports the error, it doesn't show me the line of
code where the error occurs. Also, it says the name of the offending
control is '' (empty string). As a result, I have no idea what part of
the code is causing the error.
I've gone through the code section by section and I've named every
control I can find. I've also written code to automatically name
controls by iterating recursively through the Controls collection of
my form. Nevertheless, Visual Studio still reports a cross-thread
error with control ''.
I'm aware of the rules for multi-threading, so if I find the error I
can fix it. Can anyone give me advice on how to find it?
-TC
when Visual Studio reports the error, it doesn't show me the line of
code where the error occurs. Also, it says the name of the offending
control is '' (empty string). As a result, I have no idea what part of
the code is causing the error.
I've gone through the code section by section and I've named every
control I can find. I've also written code to automatically name
controls by iterating recursively through the Controls collection of
my form. Nevertheless, Visual Studio still reports a cross-thread
error with control ''.
I'm aware of the rules for multi-threading, so if I find the error I
can fix it. Can anyone give me advice on how to find it?
-TC