Solved

How to store data in other languages in Visual Basic controls?

Posted on 2002-06-26
2
192 Views
Last Modified: 2013-11-25
I need to store data in other foreign languages in Visual Basic Controls such as Combo boxes or List Box or displaying Text ove buttons etc. Please suggest the appropriate answers.
0
Comment
Question by:Prateeks
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
marconovaro earned 50 total points
ID: 7112876

You have to use a resource file.
First of all, you can load the resource editor in VB6 with the menu Addin->Addin Manager.
Then, you have to create a resource file and write there the strings.

Each string shall have a different identifier, that you will use to load the string like this:

label1.Caption = LoadResString( 123 )

You can have different languages in the resource file, and VB will load the correct language depending on the OS you are running on.
Hope this helps you.
Marco.
0
 

Author Comment

by:Prateeks
ID: 7148880
thanks for the reply!
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month8 days, 19 hours left to enroll

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question