In my last post I mentioned that with upcoming DotNetBar 7.0 we include total of 6 completely new controls. Today I will cover first new control: Advanced Date/Time Picker.

Our Advanced Date/Time Picker control is written from ground up to provide exceptional customization options with great out of box look and feel and seamless international support. This is not inherited or wrapped up standard date/time picker. We developed it from scratch. Office 2007 style is default style for this control and it will fit great with our other Office 2007 style data input controls.

I am sure you will be happy to know that we’ve implemented all features from standard Date/Time Picker control and while doing so removed all common limitations as well :-).

Advanced Date/Time Picker control natively supports NULL values which is one of the most common complaints about standard Date/Time Picker. This is must have feature if you are binding control to the database fields. In addition to that, we support completely custom parsing of the input values. Simply handle ParseValue event and you can bind control to any type and custom process assigned value before it gets to the control.

Look and feel

Advanced Date/Time picker has Highlight on focus feature that our other input controls have. This makes it much easier to spot currently focused control on the form. This is how the Date/Time Picker control looks with default settings and Clear button visible:

You can lock control update using the check-box that is displayed on the left hand side of the control. You can also show the up/down scrolling buttons that allow user to change the currently focused date/time part by simply pressing the buttons. Image below shows these parts of the control activated:

You can also display up to 2 custom buttons inside of the Date/Time Picker and assign to them any combination of image and text. Use custom buttons to display custom dialog to choose control value, perform lookups etc. Image below shows one of the custom buttons visible:

Control look and feel can be completely customized, including the most important part, the drop-down calendar. You can mark recurring dates on calendar on monthly and annual basis. You can also mark dates based on absolute date values. In screen-shot below I marked 11th, 18th and 21st day of each month. I also customized calendar background and navigation background all using designer and without writing single line of code.

If you want to perform custom rendering on control’s calendar you can do so easily by handling PaintLabel event which occurs before each day on calendar is rendered. Provide completely custom look or combine yours and our rendering, the choice is yours. Image below shows custom rendering combined with internal control rendering:

Date/Time Formats, Custom Formatting and Beyond

Advanced Date/Time Picker, out of box, is fully internationally aware. Long and short date format and long and short time formats, as specified in end-user system options, are built-in formats. Full strength of control can be seen when custom format is used.

Setting the custom format property value to: ‘at’ HH ‘hours and’ mm ‘minutes’ results in the input shown below:

You can even create format to enter date range using single Advanced Date/Time Picker control. Setting custom format value to: ‘Starting from:’ MM/dd/yyyy ‘ until’ {MM/dd/yyyy} results in input shown below:

Using the Values property you can retrieve the array of date/time values that was entered.

DotNetBar for Windows Forms 7.0 is coming soon and it includes 6 new controls. That is total of 37 controls in DotNetBar 7.0 that will help you create professional applications with ease. Stay tuned for part 3 where I will cover another new control that is part of 7.0 release.

Professional looking applications made easy with DotNetBar for WinForms, Silverlight and WPF User Interface components. Click here to find out more.

Related posts:

  1. New in DotNetBar 7.0 part 3, Advanced Month Calendar Control
  2. DotNetBar for WPF with Advanced Window Control
  3. DotNetBar for WPF 4.0 around the corner
  4. DotNetBar for Windows Forms 7.0 Released
  5. New in DotNetBar 7.0 part 7, Reflection Label Control