InvokeRequired not available in .NETCF?

  • Thread starter Thread starter Joshua Moore
  • Start date Start date
J

Joshua Moore

When I check to see what thread i'm on in C# in the regular framework, I
have to use this.InvokeRequired (bool), but it's not available in .NETCF.

Please help.

Joshua Moore
 
Although InvokeRequired is not available on CF, you can work around this by
either
a) Engineering your code so that you know beforehand that a call to a
control method/property is being done from another thread and using Invoke
b) Using invoke in all places where you can potentially be on a non-UI
thread
c) Using GetCurrentThread (P/Invoke) to determine whether you are on a
different thread and acting accordingly
 
Back
Top