private void Form3_Load(object sender, EventArgs e)
{
this.c.Format = DateTimePickerFormat.Custom;
this.c.CustomFormat = " ";
}
private void c_ValueChanged(object sender, EventArgs e)
{
this.c.Format = DateTimePickerFormat.Long;
this.c.CustomFormat = null;
}
我是这样为空的可是运行完之后根本就不让输入了