468,133 Members | 1,181 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,133 developers. It's quick & easy.

Develop MultiLingual Application (Arabic & English) in VB.NET

Hi Guys,

I need to develop a MultiLingual Application (Arabic & English) in VB.NET, as far as Labels and captions are concerned in User Interface I am done with that using Resource Manager Class & resource File (Code given below).
But I am having issue with text boxes as we need them for both English as well as Arabic (depending upon the language selected, in arabic they will be Right aligned).
I'll appriciate if someone can guide me with proper approach.

Code for labels and captions is as follows:

Step 1: Generated 2 resource files (one for Arabic & one for English) using Resgen.exe.

Step 2: CODE

'--Load required resource file
Public Shared rm As ResourceManager = ResourceManager.CreateFileBasedResourceManager(Ara bic, Application.StartupPath, Nothing)

'''Set the text
Private Sub frmUpload_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Activated
'****Set UI language
gobjUpload.Text = rm.GetString("frmUpload")
lblFront.Text = rm.GetString("lblFront")
lblRear.Text = rm.GetString("lblRear")
lblMICR.Text = rm.GetString("lblMICR")
lblMICRErr.Text = rm.GetString("lblMICRErr")
cmdUpdateMICR.Text = rm.GetString("cmdUpdateMICR")
cmdNextMICRError.Text = rm.GetString("cmdNextMICRError")
cmdNewBatch.Text = rm.GetString("cmdNewBatch")
cmdScanBatch.Text = rm.GetString("cmdScanBatch")
cmdDeleteInst.Text = rm.GetString("cmdDeleteInst")
cmdPreviousInst.Text = rm.GetString("cmdPreviousInst")
cmdNextInst.Text = rm.GetString("cmdNextInst")
cmdCloseBatch.Text = rm.GetString("cmdCloseBatch")
cmdUploadBatch.Text = rm.GetString("cmdUploadBatch")
cmdExit.Text = rm.GetString("cmdExit")
'****End: Set UI language
End Sub
Aug 9 '07 #1
2 4978
RedSon
5,000 Expert 4TB
I have never done this before but there should be a way to find the system langauge code page at run time. Instead of looking at the project properties try looking into the system settings.
Aug 9 '07 #2
I have never done this before but there should be a way to find the system langauge code page at run time. Instead of looking at the project properties try looking into the system settings.

Hi RedSon thnx for ur reply...
but I have already checked system settings and set the system locale to english as well as arabic depending upon the requirement...
but still the problem is with text box, as i m not able to write in arabic and in left to right format...

I also checked the LOCALIZABLE and LANGUAGE property of VB.NET form and set it to Arabic, but still when we execute the program it types in english...
Aug 10 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Aditya Ivaturi | last post: by
54 posts views Thread by Vincent | last post: by
18 posts views Thread by j1c | last post: by
2 posts views Thread by raju | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.