Set Date Time Picker Value on Form Load

Stimulsoft Reports.NET discussion
Post Reply
Tom7
Posts: 21
Joined: Wed Mar 24, 2010 5:22 am
Location: Belfast

Set Date Time Picker Value on Form Load

Post by Tom7 »

Hi All

Having a problem setting a DateTimePicker value when the form loads, I was previously using an old version of Stimulsoft and this was working fine DateTimePicker1.Value = Today.AddMonths(-1), put into the load event of the form, to make my default date One Month before today.

I am now using the latest pre release of Stimulsoft (released on Aug 2nd 2010) and this functionality has stopped working?

Anyone any ideas?

Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Set Date Time Picker Value on Form Load

Post by Alex K. »

Hello,

Thank you for the bug report. We will fix it.

You can use:
DateTimePicker1.Control.Value = Today.AddMonths(-1)

Thank you.
Tom7
Posts: 21
Joined: Wed Mar 24, 2010 5:22 am
Location: Belfast

Set Date Time Picker Value on Form Load

Post by Tom7 »

Thanks Aleksey
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Set Date Time Picker Value on Form Load

Post by Jan »

Hello,

Problem fixed. Patch will be included in next prerelease build.

Thank you.
Post Reply