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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top