//怎么把你输入了多少个字`记录下来等时间到了``要显示出你一共打了多少字?如果用户输入的字数,以界面上的文本框里的字数为准,只要textBox1.Text.Length即可取得.
如果以用户输入为准,包括删除的字数,就在文本框的textBox1_KeyPress事件里统计.每输入一个字符就加1//怎么样这样显示时间`` 
// 就是 0:00:00 用Timer控件即可实现

解决方案 »

  1.   

    关于问题2,楼主您拖一个Timer控件到界面上,设定它的Interval属性为1000,然后在文本框的textBox1_KeyPress事件里:timer1.Enabled=true;
    实现用户一输入,就开始计时.在timer1的Tick事件里加1即可实现秒表的功能: private void timer1_Tick(object sender, EventArgs e)
            {
                label1.Text = Convert.ToDateTime(label1.Text).AddSeconds(1).ToLongTimeString();
            }注:label1上的文字是(0:00:00)
      

  2.   

    //参考如下代码
    private int timer = 60 * 20; // 20分private void timer1_Tick(object sender, EventArgs e)
    {
        if (timer <= 0)
        {
            timer1.Enabled = false;
            timer = 60 * 20;
            /* TODO 时间到! */
        }
        label1.Text = string.Format("{0:00}:{1:00}:{2:00}", 
            timer / 60 / 60, timer / 60 % 60, timer % 60);
        timer--;                       
    }
      

  3.   

    楼上的写的东西我不太懂呢`
    因为我还没学到这里来`所以看不太懂`
        label1.Text = string.Format("{0:00}:{1:00}:{2:00}", 
            timer / 60 / 60, timer / 60 % 60, timer % 60);
        timer--; 
    这个是什么意思啊`能告诉我一下不?
    不然我都不知道怎么下手
      

  4.   

    label1.Text = string.Format("{0:00}:{1:00}:{2:00}", 
            timer / 60 / 60, timer / 60 % 60, timer % 60);
        timer--; 将时间按照设置的格式转换成文本,再设置给label1.Text。
    timer/60/60  时
    timer/60%60  分
    timer%60     秒
    如果是1000秒,算出来就是0:00 16:00 40:00