Click to See Complete Forum and Search --> : Choosing language for runing VB-code


fhaldimann
November 9th, 1999, 08:45 AM
Is it possible to check the Windows95 language propriety (that is to set in the configuration panel under language or somethig like that. Sorry but I'm working with a german version of Windows95) via Visual Basic code and
then to set the the Visual Basic character string language at run time depending on the value of this propriety.
I'm using VB 5.0 for applications.

Lothar Haensler
November 9th, 1999, 08:58 AM
you can use the GetUserDefaultLCID API to get the current locale ID of the current user.
I do not have access to VB 5, but in VB 6 there is a ResourceEDitor addin that allows you to specify string in different language versions.
By using the LoadResString VB function VB will automatically load the string in the language that corresponds to the locale settings in control panel.