C#を使用して、Windowsのテキストボックスの右クリックコンテキストメニューを無効にする方法は? これが私が持っているものですが、いくつかのエラーがあります。
private void textBox1_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
textBox1.ContextMenu.Dispose();
}
}