Changing language in vb.net
Solved
achrafdev
Posted messages
23
Status
Member
-
hassani10 Posted messages 47 Registration date Status Member Last intervention -
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 : )
thank you : )
Configuration: Windows Vista Internet Explorer 7.0
Related links:
- [VB.NET] Select entire line ListView
- Retrieve the result of a SELECT (VB.net)
- VB.net program does not start
- Éteindre le PC avec VB.NET peut être effectué en utilisant la commande suivante : ```vb Process.Start("shutdown", "/s /t 0") ```
- [VB.NET] Creating a PictureBox Collection
- Connecting to MySQL from VB.net version 8.0.28
2 answers
-
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 -
I have the same need but with VB6 please, a solution is very urgent.