private void Form1_MouseClick(object sender, MouseEventArgs e) { if (e.Button.ToString().ToLower()=="right") { SendKeys.Send("{Esc}"); } }
textBox1.ContextMenu = new ContextMenu();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)