O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Choosing date and time

When a user of your application enters a particular date or time, such as a birth date or a time when an order should be delivered, it is a good idea to provide a built-in mechanism of choosing the date and time. Such mechanisms allow a user to select them in a comfortable way, without the necessity of entering such information in a textual form. In this recipe, you will learn how to choose a date either from the calendar or a list and how to specify time by choosing a particular hour and minute.

Getting ready

To step through this recipe, you only need the automatically generated project.

How to do it...

To allow a user to choose date or time in a few ways, perform the following steps:

  1. To add the CalendarDatePicker control to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required