[求助]如果设置日期控件DTPicker1的value属性为空?
如果设置日期控件DTPicker1的value属性为空?我设置时提示value属性不能为空...但实际运用时会有空的日期...那要怎么做?
谢谢
问题解决...我在网上找到了方法..
窗体截入时DTPicker1不显示时间
Private Sub Form_Load()
DTPicker1.Format = dtpCustom
DTPicker1.CustomFormat = " "
End Sub
'用户选择时DTPicker1显示时间
Private Sub DTPicker1_Change()
DTPicker1.Format = dtpLongDate
End Sub
'双击清除DTPicker1中显示的时间
Private Sub DTPicker1_DblClick()
DTPicker1.Format = dtpCustom
DTPicker1.CustomFormat = " "
End Sub