Click here to Skip to main content
15,891,864 members
Articles / Programming Languages / C#
Tip/Trick

Advanced DateTimePicker

Rate me:
Please Sign up or sign in to vote.
4.23/5 (7 votes)
18 Apr 2013CPOL 28.2K   3.4K   16   9
Extended DateTimePicker for Windows Form applications

Introduction

This is the extended DateTimePicker component with new design and functionalities as you can see from the screenshots.

Background

Control has one new property HeaderColor. Other properties remain the same.

Using the Code

AdvancedDateTimePicker is a class that inherits DateTimePicker. Control contains button which covers standard ShowDown button to show popup form with calendar. For this purpose, I used PopupWindowHelperClass which can be found at this link.

On the form, I used DataGridView to manipulate by DateTime value.

To change year and month popup window uses ComboBoxes and Buttons, to change hours and minutes uses Trackbars.

The project is simple, so there is not much to say about it. Please see the demo project for details.

History

  • 19th April, 2013: Initial release

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Other Other
.NET, Web developer
MSc in Computer Science

Comments and Discussions

 
GeneralMy vote of 2 Pin
Member 140776224-Dec-18 10:52
Member 140776224-Dec-18 10:52 
Generalliked it Pin
Member 114451989-Jul-17 11:14
Member 114451989-Jul-17 11:14 
GeneralThis is a good user's component Pin
jash.liao11-Oct-15 23:33
jash.liao11-Oct-15 23:33 
Questioncalendar language Pin
giannigiac4-Aug-14 22:47
giannigiac4-Aug-14 22:47 
QuestionNice post Pin
Tridip Bhattacharjee12-Dec-13 22:58
professionalTridip Bhattacharjee12-Dec-13 22:58 
QuestionVB-version??? Pin
dherrmann19-Sep-13 10:54
dherrmann19-Sep-13 10:54 
GeneralP. S. Pin
practicalDeveloper18-Apr-13 20:06
practicalDeveloper18-Apr-13 20:06 
GeneralRe: P. S. Pin
OriginalGriff18-Apr-13 21:03
mveOriginalGriff18-Apr-13 21:03 
You don't need to delete an Article / Tip in order to fix a bug - you can update it instead (that is a large part of why you can update them). To do that, just view your article as normal, and look in the top right corner - it will say "Update your article". If you click on that, you will be taken to the edit screen where you can change whatever you need to, and resubmit. It has to go back for moderation (to make sure you didn't fill it with swear words Laugh | :laugh: ) but most updates sail through very quickly - normally faster than a new article does.
The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

GeneralRe: P. S. Pin
Supratheesh S S1-Aug-13 23:45
Supratheesh S S1-Aug-13 23:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.