|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
DtPicker : Can we show blank date and time in DtPicker
Thanks for great help rpovided by you.
I am displaying order date and time using DtPicker. I want to show spaces / blank as default value of DtPicker How shall I do it ? With regards Vikas Athavale |
|
#2
|
||||
|
||||
|
Actually, I am not sure that you can do this. Having something other than a date/time in a datapicker will cause a RTE.
|
|
#3
|
|||
|
|||
|
Hi there,
I also had the same problem at work but got around it. What you have to do is set the CheckBox property of the DTPicker to TRUE and then when your form loads, you first set the date to whatever you want (most likely today's date) and then you disable it by setting its value to NULL. '# First, set date to today... then desables DTPicker # DTPicker1.Value = Now DTPicker1.Value = Null Hope this helps! Cheers, Gnu Kemist |
|
#4
|
|||
|
|||
|
I know this topic is really old. Nearly 1 year old.
but I was wondering if it was working and if it was possible to do it in Vb.Net cause that's what I am doing Code:
Me.DateTimePicker1.Checked = True
Me.DateTimePicker1.Value = Now
Me.DateTimePicker1.Value = System.DBNull.Value
but it's telling me that System.DBNull.Value can't be converted in a Date format. cause I really need to have my datapicker to null. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > DtPicker : Can we show blank date and time in DtPicker |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|