Keyboard language
I am from the Netherlands and have develloped a windows forms application in VB.NET. The most keyboards in the Netherlands can switch between English en Dutch (Alt+Shift in Windows XP for instance). When I use an Office program it automatically switches to Dutch. I can use the numeric keypad for input.
In my Windows application however it keeps English. Thus I cannot use the numeric key pad because it generates a dot as a decimal point, where a comma is the standard in Dutch.
By the way my cultural settings are Oke (dates, currency, weekdays, etc.) it's just the keyboard layout that persists in English.
Question: How to switch the keyboard to Dutch programatically.
The following functions will change the keyboard language programmatically:
To Dutch:
InputLanguage.CurrentInputLanguage =InputLanguage.FromCulture(new System.Globalization.CultureInfo("nl"));
To Dutch - Belgium:
InputLanguage.CurrentInputLanguage =InputLanguage.FromCulture(new System.Globalization.CultureInfo("nl-BE"));
To Dutch - The Netherlands:
InputLanguage.CurrentInputLanguage =InputLanguage.FromCulture(new System.Globalization.CultureInfo("nl-BE"));
Back To English:
InputLanguage.CurrentInputLanguage =InputLanguage.FromCulture(new System.Globalization.CultureInfo("en"));
Back To English - United States:
InputLanguage.CurrentInputLanguage =InputLanguage.FromCulture(new System.Globalization.CultureInfo("en-US"));