From what I’ve found in C#, the Control.Invoke method requires that you use a delegate with no input parameters. Is there any way around this? I would like to invoke a method to update the UI from another thread and pass to string parameters to it.
Share
Which version of C# are you using? If you are using C#3.5 you can use closures to avoid passing in parameters.
With C#3.5
Safely invoking code now becomes trivial.
With C#2.0 it becomes less trivial
Using it simple, but you have to define more callbacks for more parameters.