Winform 时间
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace myclient
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
timer1.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
label2.Text = System.DateTime.Now.ToString();
}
}
---------------------
作者:haiweini
来源:CSDN
原文:https://blog.csdn.net/kezanxie3494/article/details/77719702
版权声明:本文为博主原创文章,转载请附上博文链接!