Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Number to Arabic text by 27 digits before point and 27 digits after point

, 6 Jul 2006
Number to Arabic text by 27 digits before point and 27 digits after point
number_to_arabictext.zip
Number_to_ArabicText
Test
bin
Debug
Test.exe
Test.pdb
Number_to_Text.dll
Number_to_Text.pdb
obj
Debug
temp
Test.projdata
TempPE
Test.pdb
Test.exe
Test.Form1.resources
App.ico
Test.csproj.user
Test.suo
Number_to_Text
bin
Debug
Number_to_Text.dll
Number_to_Text.pdb
obj
Debug
temp
Number_to_Text.projdata
TempPE
Number_to_Text.pdb
Number_to_Text.dll
Number_to_Text.csproj.user
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using Number_to_Text;

namespace Test
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txtText;
		private System.Windows.Forms.TextBox txtNumber;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.txtText = new System.Windows.Forms.TextBox();
			this.txtNumber = new System.Windows.Forms.TextBox();
			this.SuspendLayout();
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(8, 40);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(48, 24);
			this.label2.TabIndex = 7;
			this.label2.Text = "Text";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 8);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(48, 24);
			this.label1.TabIndex = 6;
			this.label1.Text = "Number";
			// 
			// txtText
			// 
			this.txtText.Location = new System.Drawing.Point(64, 40);
			this.txtText.Multiline = true;
			this.txtText.Name = "txtText";
			this.txtText.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
			this.txtText.Size = new System.Drawing.Size(328, 128);
			this.txtText.TabIndex = 5;
			this.txtText.Text = "";
			// 
			// txtNumber
			// 
			this.txtNumber.Location = new System.Drawing.Point(64, 8);
			this.txtNumber.Name = "txtNumber";
			this.txtNumber.Size = new System.Drawing.Size(328, 20);
			this.txtNumber.TabIndex = 4;
			this.txtNumber.Text = "";
			this.txtNumber.TextChanged += new System.EventHandler(this.txtNumber_TextChanged);
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(400, 173);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.txtText);
			this.Controls.Add(this.txtNumber);
			this.Name = "Form1";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "Number to Arabic text";
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}

		private void txtNumber_TextChanged(object sender, System.EventArgs e)
		{
			txtText.Text = Number_to_Arabic_Text.NtoS(txtNumber.Text);
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

adel.adam
Web Developer
Egypt Egypt
No Biography provided

| Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 6 Jul 2006
Article Copyright 2006 by adel.adam
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid