Find Regional option of PC using VB

 I am developing a VB6 windows application. This is intended for arabic  users also. As the User clicks a button, he is expecting to switch to the arabic text. But I want to check whether the regional option selected on user's PC is Arabic. How can I check this using VB6?

The following is desirable,
   As the user clicks on the button expecting  switching to Arabic, how can the Regional option of the User can be set to Arabic
  (Is this possible using VB6?)


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Option Explicit

Private Declare Function GetUserDefaultLCID Lib "kernel32" () As Long
Private Declare Function GetSystemDefaultLCID Lib "kernel32" () As Long

Private Sub Form_Load()
   'Get LCIDs
   Debug.Print "UserDefaultLCID =", GetUserDefaultLCID
   Debug.Print "SystemDefaultLCID =", GetSystemDefaultLCID
   Debug.Print "IsArabic =", IsArabic(GetUserDefaultLCID)
End Sub

Public Function IsArabic(ByVal Lcid As Long) As Boolean
   Select Case Lcid
      Case 5121, 15361, 3073, 2049, 11265, 13313, 12289, 4097, 6145, 8193, 16385, 1025, 10241, 7169, 14337, 9217
         IsArabic = True
   End Select
End Function

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.