Categories
Uncategorized

How to Develop a Form in VB6 That Supports Two Opposite Languages (Arabic, Latin) Simultaneously

Today I would like to expose how to design, create and code a form in Visual Basic that supports two languages that are written in an opposite way. For example, I take Arabic and English. There will several constraints to overcome.

1. Arabic is written from right to left. By cons, English is written from left to right. This will require us to switch direction at each transition field US / AR.

2. The characters in both languages are completely different. Therefore the character table should be loaded at each transition as well. (Note that the Unicode standard can cover all these characters)

3. When typing, the manual switch between the two languages may be very inconvenient for the user.

4. The user should be typing and not using the mouse and other options.

We must therefore manage these constraints and give the user the best possible interface.

1. To do this, it would be wise to design the form into two parts. The right for Arabic and left for English.

2. Now we have to make sure that your program distinguishes the input fields language (corresponding to the TextBox, ListBox,….). Use the Tag property for each control to specify the input language (set it to ‘a’ for Arabic and ‘e’ for English).

NOTE: A good idea would be to create an indexed array of controls to make your coding easy.

Leave a Reply

Your email address will not be published. Required fields are marked *