Changing control properties from background thread .net 2.0

44 Views Asked by At

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));
}
0

There are 0 best solutions below