O'Reilly logo

Special Edition Using Microsoft® Visual Basic® .NET by Jeff Spotts, Brian Siler

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

Specialized Date Input Controls

Visual Basic .NET includes two controls that allow your programs to accept date (and possibly time) information as input. These two controls are discussed in this section.

The DateTimePicker Control

When you want to allow your users to enter date and time information directly, the DateTimePicker control is a flexible and user-friendly entry tool. Its basic interface allows the user to enter a date in one of two predefined formats, a time in a predefined format, or a date and/or time in a customizable format. Depending on how you set its properties (see Table 12.1), the DateTimePicker offers the user either a dynamic drop-down calendar from which to select a date or a formatted text box in which he can manually ...

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