显示系统的时间

来源:互联网 发布:js获取list长度 编辑:程序博客网 时间:2024/05/17 12:00
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    {        public Form1()        {            InitializeComponent();        }                private void Form1_Load(object sender, EventArgs e)        {                    }        private void button1_Click(object sender, EventArgs e)        {            button1.Text = "单击此处显示当前系统的时间";            String s = DateTime.Now.ToString();            label1.Text =  s;        }    }}


运行结果:

心得体会:呵呵

0 0