| |

VerySource

 Forgot password?
 Register
Search
View: 912|Reply: 6

How to set the date range of the Date Time Picker control?

[Copy link]

1

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-2-11 21:30:01
| Show all posts |Read mode
I made a program for converting the Gregorian calendar and used the Date Time Picker control. I want to control the range of dates that the control can select from 1950 to 2050. How do I implement it? Thank you!
Reply

Use magic Report

0

Threads

22

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-4-9 20:00:01
| Show all posts
CDateTimeCtrl :: SetRange
Reply

Use magic Report

1

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-5-10 02:45:01
| Show all posts
Thank you. If I use value (corresponding COleDateTime type) instead of control when I associate variables, how can I use SetRange?
Reply

Use magic Report

0

Threads

22

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-5-10 23:45:01
| Show all posts
Increase DDV_MinMaxDateTime () in DoDataExchange
Reply

Use magic Report

1

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-5-27 02:15:01
| Show all posts
Hey, thank you so much, I didn't find it for a long time, hehe!
Reply

Use magic Report

1

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-5-30 15:00:01
| Show all posts
DDX is used for input data interaction, and DDV is used for data verification.
For the same variable, DDV should follow DDX, otherwise it will go wrong!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-3 18:00:01
| Show all posts
DDX is used for input data interaction, DDV is used for data verification.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list