Click here to Skip to main content
11,928,985 members (54,208 online)
Click here to Skip to main content
Add your own
alternative version


14 bookmarked

Arabization Controls for Smart Devices

, 11 May 2009 GPL3
Rate this:
Please Sign up or sign in to vote.
.NET controls to be used for development of Arabic applications for smart devices.


Compact .NET Framework Arabic Enabled Assemblies allow .NET developers to create Arabic enabled applications without using any other external software.


The idea was born while I was working on a Symbol handheld creating shelf prices' checker and labels printing software for Windows CE 5.0. I was required to retrieve, display and print Arabic (Hindi) numbers and context.

Using the Code

This code is a sample code for design-time controls.

This project is complete but it would need some modifications depending on your needs:

/* Sample code for Arabic Button */

using System.Drawing;
using System.Windows.Forms;
using System.Text;

namespace Ar.Controls
    public class ArabicButton : System.Windows.Forms.Button
        private bool m_HindiNumerals;
        private string m_LogicalText;
        private bool m_RightToLeft;

        public bool HindiNumerals
		return this.m_HindiNumerals;
		this.m_HindiNumerals = value;
		this.Text = this.m_LogicalText;

        public new bool RightToLeft
		return this.m_RightToLeft;
		this.m_RightToLeft = value;
		this.Text = this.m_LogicalText;

        public new string Text
		return this.m_LogicalText;
		if (value != null)
			this.m_LogicalText = value;
			StringBuilder builder1 = 
				new StringBuilder(this.Text.Length + 1);
			short num1 = (short) this.m_LogicalText.Length;
			ushort[] numArray1 = new ushort[1];
			if (this.m_HindiNumerals)
				numArray1[0] = 1;
				numArray1[0] = 0;
			(this.m_RightToLeft, this.Text, builder1, num1, numArray1);
			base.Text = builder1.ToString();

        public override System.Drawing.Font Font
				return base.Font;
				base.Font = value;

        public ArabicButton()
			//this.Font = new Font("Tahoma", 8f, FontStyle.Regular);
			this.m_RightToLeft = true;
			this.m_HindiNumerals = true;
    } // class ArabicButton

It was written for compact framework version 2.0, tested on Windows CE 5.0 and Windows Mobile 5.0.

Points of Interest

Arabic is a very complicated and beautiful language. I hope to use this language in programming instead of English.


This project started earlier in 2005 and it sure needs some modifications.

  • 11/5/2009: Added mArabicCore in the article attachments


This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


About the Author

Hani Gamal
CEO Maktabak Dot Net
Egypt Egypt
Hani Gamal is a Senior Analyst Programmer by profession and an operation director of Maktabak Dot Net, a leading open source integrated solutions provider, a co-founder of PHP for Arabs usergroup and the founder of PHP Egypt usergroup. Hani adores technical challenges with strong experience in design and high integration problem solving skills gained over 10 years of professional diverse experience ranging from developing business plans, requirements specifications, user documentation to architectural systems research.
Group type: Collaborative Group

1 members

You may also be interested in...

Comments and Discussions

Generalthe project has error on compilation, could you please help me Pin
George abboudeh12-Jan-10 3:02
memberGeorge abboudeh12-Jan-10 3:02 
GeneralHelp Pin
Member 68709130-Nov-09 18:33
memberMember 68709130-Nov-09 18:33 
QuestionPlease help me ... Error when registering mArabicCore.dll in windows ce Pin
A.Ibrahim22-Jul-09 3:53
memberA.Ibrahim22-Jul-09 3:53 
GeneralA reference to 'mArabicCore.dll' could not be added. Pin
A.Ibrahim20-Jul-09 0:58
memberA.Ibrahim20-Jul-09 0:58 
GeneralRe: A reference to 'mArabicCore.dll' could not be added. Pin
Hani Gamal20-Jul-09 1:13
groupHani Gamal20-Jul-09 1:13 
GeneralRe: A reference to 'mArabicCore.dll' could not be added. Pin
Member 6870918-Dec-09 0:35
memberMember 6870918-Dec-09 0:35 
GeneralmArabicCore.dll Pin
gaurav srivastav11-May-09 1:06
membergaurav srivastav11-May-09 1:06 
GeneralRe: mArabicCore.dll Pin
hanigamal11-May-09 3:43
memberhanigamal11-May-09 3:43 
Questionwhere is mArabicCore.dll ??????? Pin
NoOoOor22-Mar-09 8:15
memberNoOoOor22-Mar-09 8:15 
AnswerRe: where is mArabicCore.dll ??????? Pin
hanigamal15-Apr-09 15:10
memberhanigamal15-Apr-09 15:10 Pin
DrMazenJamal19-Jan-09 22:46
memberDrMazenJamal19-Jan-09 22:46 Pin
DrMazenJamal19-Jan-09 22:03
memberDrMazenJamal19-Jan-09 22:03 

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.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.151126.1 | Last Updated 11 May 2009
Article Copyright 2008 by Hani Gamal
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid