contextMenuStrip click events in vb.net
-
25-09-2019 - |
Question
Is there an event that fires in vb.net just before a contextMenuStrip appears when the user right clicks on a control? I need to be able to control the content of the contextMenuStrip just prior to the menu strip appearing. Basically I want to be able to change the content of the contextMenuStrip just before it appears. Is this possible?
Solution
Yes, use the Opening event.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow