c#日期和事件控件的使用(日期的修改)

来源:互联网 发布:都叫兽数据恢复激活码 编辑:程序博客网 时间:2024/05/29 16:00

在窗体中添加一个 richTextBox控键  一个Date\TimePicker控键   一个按钮建(button)   两个标签键

注:将第二个label 属性中text的值设置为空


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 ccccccccccccc{    public partial class Form1 : Form    {        public Form1()        {            InitializeComponent();        }        private void button1_Click(object sender, EventArgs e)        {            label1.Text = "文档的修改时间为 " + dateTimePicker1.Value.ToString() +  "\n\n" ;        }    }}


0 0
原创粉丝点击