sp.Write( string.format("AT+CMGS=\"{0}\ "\r ",textBox4.text));       ?????         这里的

解决方案 »

  1.   

    好像不能这样写啊 编译通过不了,“System.Windows.Forms.TextBox”并不包含“text”的定义
      

  2.   

    string str=Text1.Text.ToString();this.sp.Write( "AT+CMGF=1\r ");   //设置为文本模式     
    sp.Write( "AT+CMGS=\"" + str + "\"\r");
      

  3.   


    string str=Text1.Text.ToString();this.sp.Write( "AT+CMGF=1\r ");   //设置为文本模式     
    sp.Write( "AT+CMGS=\"" + str + "\"\r");
      

  4.   

    sp.Write( "AT+CMGS=\ "+textBox4.Text.ToString()+""\ "\r ");