Click here to Skip to main content
Click here to Skip to main content

Windows Hijri Calendar

By , 26 Jan 2008
 

HijriDate

ScreenShot2.JPG

ScreenShot3.JPG

ScreenShot4.JPG

Introduction

I tried to get a Hijri calendar control. I couldn't get any, so I developed this one.

In this article, I introduce two Hijri date controls:

  1. Hijri calendar
  2. Masked Hijri / Gregorian Edit

Background

First, I have to thank Anas Bahsas for his article, Convert Date from Hijri Calendar to Gregorian Calendar and Vice Versa.

The Calendar control acts like the Microsoft MonthCalendar Control without Keyboard navigation.

The masked Hijri edit control just validates input Hijri / Gregorian date.

Using the Code

To use the controls, just add them to your project, drag and drop them on the form.

For the Hijri calendar control, you should handle the DateChanged event.

History

  • 27th January, 2008: Initial post

License

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

About the Author

Muhammad Elmasry
Software Developer (Senior) Zaf Systems
Egypt Egypt
Member
Working as senior software engineer at Zaf Systems
Interested In C++ MFC ATL C#
Security algorithms Encryption
Currently working in Java SCJP.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralMy vote of 5membermanoj kumar choubey9 Jul '12 - 23:43 
Nice
QuestionMashallah Good Workmemberismail aakhil14 Mar '12 - 6:42 
JazakAllahu Khairan wa Ahsanul jaza
GeneralMy vote of 5memberАslam Iqbal11 Dec '11 - 17:36 
jazakallah khaer...
QuestionGood work...membermhm_abusalimeh30 Nov '11 - 0:52 
hi, i am looking for a datetimepicker control which support hijri calendar, i spent a few days... until i found your control, its excelent but i want to know if you have a new version for this control or not?
GeneralGood Workmemberaneeshkonny8 Mar '10 - 6:27 
Thanks for your Nice Donation to Tech World...Keep up the work..
Generalexcellent workmemberremoman18 Jan '10 - 3:08 
it is very good effort from you
 
thanks alot
 
ramadan rashid

GeneralMy vote of 1membermaleksafadi23 May '09 - 1:48 
the selected date now is not real
GeneralGood WorkmemberAnas Bahsas6 Apr '09 - 6:24 
I really felt happy when I saw my code has been implemented with new interface .
I think it would be great if you can combine both the Gregorian calendar along with Hijri calendar in one screen .
 
Best Regards,
Anas Bahsas
 
SpeeHusH.NET

GeneralExcellentmembersoftsniper4 Apr '09 - 19:03 
جزاك الله كل خير ونفع بك الاسلام والمسلمين
GeneralGOOD WORKmembermyxiang24 Jul '08 - 21:27 
THANX .. UR WORK GIVE ME SOME IDEAS TO DEVELOP MY FINAL YEAR PROJECT
QuestionAny WPF versionmemberRapidfox27 Jun '08 - 0:34 
First, thank you for this great work.
 
I want to ask if you did develop this calender under WPF?
 

thank u.
GeneralThanksmemberAbu Abdillah19 May '08 - 10:12 
I was looking for it for years...
 
Thanks a lot!
 
Best regards,
Abu Abdillah

GeneralGood workmemberMustafa Ismail Mustafa27 Jan '08 - 1:43 
Good work, we do need such a control to be used in applications that are to be developed in the Arab world, particularly the Gulf as they use this calendar constantly.
 
Although I would suggest that you expand more on the how you were able to accomplish this feat, expand on the technical points of developing this article.
 
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed.
Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
 
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Coo

GeneralRe: Good workmemberAbu Abdillah13 Apr '08 - 5:25 
I agree... I'm also interested in that precisions.
 
Best regards,
Abu Abdillah

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

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 27 Jan 2008
Article Copyright 2008 by Muhammad Elmasry
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid