Connecting Tech Pros Worldwide Forums | Help | Site Map

data binding DataTimePicker Control in vb.net 2005.

h
Guest
 
Posts: n/a
#1: Apr 25 '06
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



Cor Ligthert [MVP]
Guest
 
Posts: n/a
#2: Apr 25 '06

re: data binding DataTimePicker Control in vb.net 2005.


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

"h" <har_sha_99@hotmail.com> schreef in bericht
news:eVhsK5FaGHA.4784@TK2MSFTNGP02.phx.gbl...[color=blue]
> 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
>
>[/color]


Closed Thread