title: How to disable the right-click context menu on textboxes in Windows, using C#?
body: <p>How to disable the right-click context menu on textboxes in Windows, using C#? Here's what I've got, but it has some errors.</p>
  
  <pre><code>private void textBox1_MouseDown(object sender, MouseEventArgs e)
  {
      if (e.Button == MouseButtons.Right)
      {   
         textBox1.ContextMenu.Dispose();               
      }                       
  }
  </code></pre>