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:
- Hijri calendar
- 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