日期:2014-05-20  浏览次数:20842 次

帮忙看下这代码肿么回事?3Q~
为什么我点击BUTTON按钮之后没有反应?
[code=C#][/code]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Params
{
  public partial class Form1 : Form
  {
  public Form1()
  {
  InitializeComponent();
  }

  private void UseParams(params string[] list)
  {
  for (int i = 0; i < list.Length; i++)
  {
  richTextBox1.AppendText(list[i] + "/r/n");
  }
  }

  private void UseParams1(params object[] list)
  {
  for (int i = 0; i < list.Length; i++)
  {
  richTextBox1.AppendText((object)list[i].ToString() + "/r/n");
  }
  }

  private void button1_Click(object sender, EventArgs e)
  {
  UseParams("how", "are", "you");
  UseParams1(6, 'c', "good study!");
  }
  }
}


------解决方案--------------------
看看是不是button1_Click的注册事件丢了