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
版权声明:本文为博主原创文章,转载请附上博文链接!

posted @ 2019-02-14 16:17  kuangx  阅读(246)  评论(0编辑  收藏  举报