Changing language in vb.net

Solved
achrafdev Posted messages 23 Status Member -  
hassani10 Posted messages 47 Registration date   Status Member Last intervention   -
Hello, I created a program with Visual Basic .NET 2008 where I need to write in Arabic in the first textbox and in French in the second, and I'm looking for a method to change the language programmatically (automatically)
thank you : )
Configuration: Windows Vista Internet Explorer 7.0

2 answers

  1. achrafdev Posted messages 23 Status Member
     
    Here is the solution I found:
    import the globalization class
    and then in the event where you want to change the keyboard language:
    InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(New CultureInfo("fr")) 'for French
    InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(New CultureInfo("Ar"))
    'for Arabic and so on

    of course the languages must be installed on the operating system
    good luck
    0
  2. hassani10 Posted messages 47 Registration date   Status Member Last intervention  
     
    I have the same need but with VB6 please, a solution is very urgent.
    0