这个方法怎么使用啊?textBox1.selectall;求代码

解决方案 »

  1.   

    textBox1.SelectAll;//全选文本
    string strSelectedText = textBox.SelectedText();//返回所选的文本
      

  2.   

                textBox1.Focus();
                textBox1.SelectAll();
      

  3.   


    //在textbox1获得焦点时,全选
    private void textbox1_Enter(object sender, EventArgs e)
    {
       textbox1.SelectAll();//微软已经去掉了GetFocus方法,以后统一成Enter方法了
    }
      

  4.   

    textBox1.SelectAll();[align=center]**********************************************
    欢迎使用 CSDN 小秘书
    http://blog.csdn.net/whowhen21
    **********************************************[/align]