CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Posts
    8

    Choosing language for runing VB-code

    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.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Choosing language for runing VB-code

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured