int time=0;button1.Click事件
time++;
if(item==1)
textbox.Text=time;
else
textbox.Text=","+time;

解决方案 »

  1.   

    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 WindowsFormsApplication1
    {
        public partial class Form1 : Form
        {
            private static int i = 0;
            public Form1()
            {
                InitializeComponent();
            }        private void button1_Click(object sender, EventArgs e)
            {
                i++;
                if (i <= 1)
                {
                    textBox1.Text += i;
                }
                else textBox1.Text += "," + i;
            }
        }
    }
    方法千百种,LZ可以自己思考