摘要: DateTime.Now.ToShortDateString() //只取日期DateTime.Now.ToLongTimeString();//只取时间搞定 DateTime.Now.ToShortTimeString()DateTime dt = DateTime.Now;dt.ToString 阅读全文
posted @ 2018-05-26 22:41 #C和C# 阅读(6759) 评论(0) 推荐(1) 编辑
摘要: C#combobox1中设置dropdownstyle为dropdownlist,清空时写法: comboBox1.SelectedIndex = -1; C#combobox1中设置dropdownstyle为dropdown,清空时写法: comboBox1.text= ""; C#combob 阅读全文
posted @ 2018-05-26 17:04 #C和C# 阅读(3043) 评论(0) 推荐(0) 编辑