计时器
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace 计时器{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } int flag = 0; private void timer1_Tick(object sender, EventArgs e) { flag ; label1.Text = flag.ToString(); } }}
评论