sasikumar

sasikumar

  • NA
  • 15
  • 0

How to make "ContextMenu" disappear on Keypress Event?

Feb 13 2012 4:39 AM
Hi,

I've a context menu on my form. After clicking multiple items with sub-menu, finally it comes to ToolStripTextBox. I enter some text and press enter. The key press event verifies that the enter key was pressed and does the required action without any issues.

But the issue is, the expanded ContextMenu with the sub-menu and the ToolStripTextBox is still visible on the form. How can I make the ContextMenu disappear on verifying that the enter key was pressed?

Thanks,
SK.

Answers (1)