Click here to Skip to main content
14,923,486 members
Articles / Programming Languages / C#
Article
Posted 26 Jan 2008

Stats

97.6K views
10.7K downloads
35 bookmarked

Windows Hijri Calendar

Rate me:
Please Sign up or sign in to vote.
4.69/5 (27 votes)
26 Jan 2008CPOL
This control enables developers to show Hijri calendar like Windows Georgian calendar

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)

Share

About the Author

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

Comments and Discussions

 
QuestionGetting characters like ÓÈÊ Pin
Member 1057264922-Dec-14 20:20
MemberMember 1057264922-Dec-14 20:20 
GeneralMy vote of 3 Pin
Mojtaba Rezaeian7-Nov-14 9:20
MemberMojtaba Rezaeian7-Nov-14 9:20 
GeneralMy vote of 4 Pin
Sibeesh Venu6-Aug-14 17:58
professionalSibeesh Venu6-Aug-14 17:58 
QuestionASCII Codes in place of days Pin
uzwa14-Dec-13 20:56
Memberuzwa14-Dec-13 20:56 
AnswerRe: ASCII Codes in place of days Pin
Amr Abd-Rabou15-May-14 3:42
MemberAmr Abd-Rabou15-May-14 3:42 
Questionwhy I cannot select date "30/2/1434"? Pin
houssam1135026-Sep-13 22:54
Memberhoussam1135026-Sep-13 22:54 
Questiongreat Pin
Haseeb Mukhtar21-Aug-13 1:36
MemberHaseeb Mukhtar21-Aug-13 1:36 
GeneralMy vote of 5 Pin
Manoj Kumar Choubey9-Jul-12 23:43
professionalManoj Kumar Choubey9-Jul-12 23:43 
QuestionMashallah Good Work Pin
ismail aakhil14-Mar-12 6:42
Memberismail aakhil14-Mar-12 6:42 
GeneralMy vote of 5 Pin
Аslam Iqbal11-Dec-11 17:36
professionalАslam Iqbal11-Dec-11 17:36 
QuestionGood work... Pin
mhm_abusalimeh30-Nov-11 0:52
Membermhm_abusalimeh30-Nov-11 0:52 
GeneralGood Work Pin
aneeshkonny8-Mar-10 6:27
Memberaneeshkonny8-Mar-10 6:27 
Generalexcellent work Pin
remoman18-Jan-10 3:08
Memberremoman18-Jan-10 3:08 
GeneralMy vote of 1 Pin
maleksafadi23-May-09 1:48
Membermaleksafadi23-May-09 1:48 
GeneralGood Work Pin
Anas Bahsas6-Apr-09 6:24
MemberAnas Bahsas6-Apr-09 6:24 
GeneralExcellent Pin
batati4-Apr-09 19:03
Memberbatati4-Apr-09 19:03 
GeneralGOOD WORK Pin
myxiang24-Jul-08 21:27
Membermyxiang24-Jul-08 21:27 
QuestionAny WPF version Pin
Rapidfox27-Jun-08 0:34
MemberRapidfox27-Jun-08 0:34 
GeneralThanks Pin
Mohamed Y. Elamrani19-May-08 10:12
MemberMohamed Y. Elamrani19-May-08 10:12 
GeneralGood work Pin
Mustafa Ismail Mustafa27-Jan-08 1:43
MemberMustafa Ismail Mustafa27-Jan-08 1:43 
GeneralRe: Good work Pin
Mohamed Y. Elamrani13-Apr-08 5:25
MemberMohamed Y. Elamrani13-Apr-08 5:25 

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.