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