Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How do I disable the default ContextMenu of a TextBox?

To prevent the default context menu of a TextBox from showing up, assign a empty context menu as shown below:

textBox1.ContextMenu = new ContextMenu();

Contributed from George Shepherd's Windows Forms FAQ



Page view counter