給text 添加文本,用AppendText()

Code:
  1. using System;  
  2.   
  3. using System.Collections.Generic;  
  4. using System.ComponentModel;  
  5. using System.Data;  
  6. using System.Drawing;  
  7. using System.Linq;  
  8. using System.Text;  
  9. using System.Windows.Forms;  
  10.   
  11. namespace WinForm6  
  12. {  
  13.     public partial class Form1 : Form  
  14.     {  
  15.         public Form1()  
  16.         {  
  17.             InitializeComponent();  
  18.         }  
  19.   
  20.         private void button1_Click(object sender, EventArgs e)  
  21.         {  
  22.             textBox1.AppendText(DateTime.Now.ToString()+'/n');//  
  23.             //附加文本用  AppendText()  效果最好!  
  24.               
  25.         }  
  26.     }  
  27. }  
  28.    


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章