Important alert: (current site time 7/15/2013 8:32:18 AM EDT)
 

article

a 1Line code #1 - change the language in language bar

Email
Submitted on: 9/7/2006 1:38:15 AM
By:  
Level: Beginner
User Rating: By 2 Users
Compatibility: VB.NET
Views: 8714
 
     hi this is my first post . this 1line code can be used by programers that want to switch between 2 or more languages in MSwindows by code. thank to all of my friends in www.atropatgan.com/bforum/ leave a comment 4 me and help me do better in future ;)

 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
  1. You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
				InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(System.Globalization.CultureInfo.CreateSpecificCulture("Fa"))
' just change the < FA > with any thing u want


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

9/18/2006 11:39:45 PMrafcardenas

I wrote Spanish instead Fa, put it in a button and clicked it. Got error
(If this comment was disrespectful, please report it.)

 
9/20/2006 1:10:52 AMR. Azmi

Could you give me the full example source that can compiled?
I am beginner.
(If this comment was disrespectful, please report it.)

 
9/21/2006 5:21:36 AMhesam

you need to set the language option just like windows . for example my language is farsi but windows just set FA down there . you must install the selected language in windows regional setting first to do this .
to run it . just make a command button and put the 1 line code in it .. simple

peace-
(If this comment was disrespectful, please report it.)

 
10/25/2007 1:59:10 AMMes

Very helpful, thank you
(If this comment was disrespectful, please report it.)

 
10/25/2007 10:54:48 AMjames kahl

FYI: what shows in the language bar isn't necessarily what you need to put in place of 'FA', for example I use Chinese (Taiwan) and Chinese (PRC) both show as 'CH' on the language bar but in order to change to chinese it needs to be 'zh-tw' and 'zh-cn' respectively. If you want Spanish (Mexico) you would need to use 'es-mx'
(If this comment was disrespectful, please report it.)

 
5/11/2010 6:02:22 AMnatako

Goood

(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.