textBox1.ReadOnly = true;

解决方案 »

  1.   

    在KeyPress事件里面
    e.Cancel=false
      

  2.   

    我想要得就是类似振荡波大虾的方法,可是keypress里面没有这个e.cancel呀,只有e.keychar。怎么办?
      

  3.   

    private void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
    {
    e.Handled=true;
    }键盘都没用了。
      

  4.   

    <asp:TextBox onkeydown="return false;" onPaste="return false;" ...>