Enable a MenuItem from a different Thread

  • Thread starter Thread starter Trevor
  • Start date Start date
T

Trevor

I am trying to figure out how to enable a MenuItem from a thread. I use
Control.Invoke to update the text of a label and textbox from the thread.
However, MenuItem does not inherit from Control and does not seem to have an
Invoke/InvokeRequired method. How can I enable a MenuItem from a different
thread?
 
Use Invoke/InvokeRequired on another control that was created in the UI
Thread context. The Form the menu is on is a good candidate.

--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
 
That did the trick. Thanks for the tip.

Chris Tacke said:
Use Invoke/InvokeRequired on another control that was created in the UI
Thread context. The Form the menu is on is a good candidate.

--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
 
Back
Top