设置N个textbox控件,一个command控件 
command控件的Click()事件为 
text1.text = text2.text + text3.text + text4.text  ………… 
我想把 text2.text + text3.text……什么输成几行 
就是 text1.text = text2.text + 
           text3.text + 
           text4.text +…… 这样可以么?如何实现?能写出详细点的代码么?谢谢了 

解决方案 »

  1.   

    text1.text = text2.text + _ 
               text3.text + _
               text4.text结尾加上空格下滑线
      

  2.   

    首先要设定text1的MultiLine属性为true,然后
    Private Sub Command1_Click()
        Text1.Text = Text2.Text + vbCrLf + _
                     Text3.Text + vbCrLf + _
                     Text4.Text
        
    End Sub
      

  3.   

    输出不是   text2.text  
               text3.text 
               text4.text …… ?好象是和text2.text + text3.text + text4.text …… 一样的……
    能不能输出格式是 text2.text  
                     text3.text 
                     text4.text …… 不好意思~偶是真菜鸟
      

  4.   

    text1.text=text2.text & chr(13) & text3.text & chr(13) _
    text4.text......