December 7th, 2009, 03:53 PM
Changing Context Menu Strip of the Control
Dear Code Gurus,
In my C# code I have a ContextMenuStrip assigned to one of the controls, which comes up when the user clicks the right button over this control. What I want to do is basically make some of the items on this ContextMenuStrip visible/invisible and/or enabled/disabled depending on the choices made in the program. One way to do it is to change the items in this ContextMenuStrip every time something effecting it may happen - however there are too many places in the program effecting it and it seems to be more efficient just to adjust it whenever the right button is clicked.
What would be the function that I need to modify in this case?
Thank you for your help!
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!