| private void button3_Click(object sender, RoutedEventArgs e) {
 Thread thread = new Thread(output);
 thread.IsBackground = true;
 thread.Start("123");
 }
 
 public void output(string msg)
 {
 this.txt_num.Dispatcher.Invoke(new outputDelegate(outputAction), msg);
 }
 
 private void outputAction(string msg)
 {
 this.txt_num.AppendText(msg);
 }
 }
 delegate void outputDelegate(string msg);
 有错误???
 
 
 |