Solved

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

Posted on 2002-06-26
2
190 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
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

749 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