DateTimePicker control 
Author Message
 DateTimePicker control

Hi All,

I'm using the DateTimePicker control in an app and it works fine, but the
default date is the date that I added the control to the form. I know that
this is the Value property and I can change it, but is there a way to
specify the current date every time the app is run?

At runtime, if you go to the drop down calendar, the current date is circled
so I would think that the control should be able to default this date to the
list box. I'm sure it's just a property that I didn't find yet.

Thanks for the help,

     -DP-



Wed, 18 Jun 1902 08:00:00 GMT  
 DateTimePicker control
Dan,

You haven't missed a property.  Just set the default date each time your app
runs.

--A



Wed, 18 Jun 1902 08:00:00 GMT  
 DateTimePicker control
Shouldn't the following work?

DateTimePicker.Value = Now

Craig


Quote:
> Hi All,

> I'm using the DateTimePicker control in an app and it works fine, but the
> default date is the date that I added the control to the form. I know that
> this is the Value property and I can change it, but is there a way to
> specify the current date every time the app is run?

> At runtime, if you go to the drop down calendar, the current date is
circled
> so I would think that the control should be able to default this date to
the
> list box. I'm sure it's just a property that I didn't find yet.

> Thanks for the help,

>      -DP-



Wed, 18 Jun 1902 08:00:00 GMT  
 DateTimePicker control
That was way too simple. Thanks for the help.

     -DP-


Quote:
> Shouldn't the following work?

> DateTimePicker.Value = Now

> Craig



> > Hi All,

> > I'm using the DateTimePicker control in an app and it works fine, but
the
> > default date is the date that I added the control to the form. I know
that
> > this is the Value property and I can change it, but is there a way to
> > specify the current date every time the app is run?

> > At runtime, if you go to the drop down calendar, the current date is
> circled
> > so I would think that the control should be able to default this date to
> the
> > list box. I'm sure it's just a property that I didn't find yet.

> > Thanks for the help,

> >      -DP-



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Control Similar to Datetimepicker control

2. How to install DateTimePicker Control to another computer

3. Blank .text value for DateTimePicker control

4. How to simulate DateTimePicker control in ASP.NET?

5. customize month names in DateTimePicker Control

6. Binding a datetimepicker control to a date time dataset field does not work

7. How to bind data to DateTimePicker control?

8. No date in DateTimePicker Control

9. DateTimePicker Control - Backcolor

10. DateTimePicker control Format

11. DateTimePicker Control-- where is it?

12. DateTimePicker Control Problems on Web Page.

 

 
Powered by phpBB® Forum Software