dateTimepicker选择了日期后,日历没隐藏起来

Johnny_Bao 2012-07-04 02:02:19
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void dtpBirth_ValueChanged(object sender, EventArgs e)
{
dtpBirth.Format = DateTimePickerFormat.Short;
dtpBirth.CustomFormat = null;
}

private void Form1_Load(object sender, EventArgs e)
{
dtpBirth.Format = DateTimePickerFormat.Custom;
dtpBirth.CustomFormat = " ";
}


}
...全文
303 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧