禁止在TextBox中粘贴的指南方案方法一:使用KeyDown/KeyPress事件 csharp private void textBox1_KeyDown(object sender, KeyEventArgs e) { // 检查Ctrl+V组合键 if (e.Control && e.KeyCode == Keys.V) { e.SuppressKeyPress = true; // 禁止粘贴 } } 方法二:使用TextBox的ShortcutsEnabled属性 csharp textBox1.ShortcutsEnabled