How to invoke changes to control from a background thread?
I used the code below for controls using .NET CF 3.5 but how to do it in .NET 2.0?
if (button2.InvokeRequired)
{
button2.Invoke((Action)(() => button2.Enabled = true));
}
How to invoke changes to control from a background thread?
I used the code below for controls using .NET CF 3.5 but how to do it in .NET 2.0?
if (button2.InvokeRequired)
{
button2.Invoke((Action)(() => button2.Enabled = true));
}