Programatically disable Right Click on Textbox

To avoid Right Click on the text box use the following code in either Form Load event or in constructor.Set the ContextMenu of the textbox to new instance of the ContextMenu

ITPro Today

August 7, 2005

1 Min Read
ITPro Today logo in a gray background | ITPro Today

To avoid Right Click on the text box use the following code in either Form Load event or in constructor.Set the ContextMenu of the textbox to new instance of the ContextMenu

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like