data binding DataTimePicker Control in vb.net 2005.

  • Thread starter Thread starter h
  • Start date Start date
H

h

Hi,

I am binding datetimepicker control in vb.net 2005, I set following property
for the control.
format -> custom, customformat -> dd/MM/yyy,
Above control runs well if I set my system date (from regional settings) in
same format i.e. dd/MM/yyy but if I set it on another format, the control's
text property doesn't get user value.

Is there any solution.


Hardik Shah
 
Hardik,

The standard mistake made with binding to the datatimepicker is that there
is binded to the text property of the datetimepicker, this has to be the
value property.

I hope this helps,

Cor
 
Back
Top