Solved

Is it possible to have a language file/module in Visual Studio?

Posted on 2009-05-06
6
166 Views
Last Modified: 2013-11-27
Hello Experts.

Is it possible to have a language file or module in Visual Basic that can be referenced by name?  I know how to do this with "Public Const T = "Test"", but can it be used in the form properties window text field?  Currently this is manually filled in during form design but if a variable could be used to update a similar names, that would be great.

Any ideas?

Thanks.

Mike
0
Comment
Question by:missionarymike
  • 3
  • 2
6 Comments
 
LVL 32

Expert Comment

by:Daniel Wilson
ID: 24321093
Are you talking about internationalization?  So that you set up a file with, for example, French label text instead of the English in which you initially develop?
0
 

Author Comment

by:missionarymike
ID: 24321141
Not so much as a foreign language.  But a file containing language variables that can be referenced throughout the program.  That way if you need to change all the references in 100 different locations you just would change it in 1 file and the others would automatically update when the form/page is called.

Example:
Language Variable --> Program Name = ProgNam

Use --> Form1.Name = ProgNam

Currently you can specify the text in the form properties window, but I would like to set this programmitically for ease of use.

Mike
0
 
LVL 2

Expert Comment

by:danls
ID: 24321194
What type of applications are you developing? Web or Windows?

I develop web applications and this sounds like something that would go in the web.config file, as in:
<appSettings>

      <add key="PROGRAM_NAME" value="ProgNam" />

</appSettings>

Open in new window

0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:missionarymike
ID: 24321309
I am using Visual Studio Express 2008 and designing a windows form application.

Mike
0
 
LVL 2

Accepted Solution

by:
danls earned 500 total points
ID: 24321374
Maybe something like this works for you?

http://geekswithblogs.net/akraus1/articles/64871.aspx

Regards,

D
0
 

Author Closing Comment

by:missionarymike
ID: 31578786
Very, Very informative.

Thank you.

Mike
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now