Solved

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

Posted on 2009-05-06
6
167 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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…

867 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

21 Experts available now in Live!

Get 1:1 Help Now