Newbie question about local language settings

L

lexj

I know one can by changing the local setting on an individual computer
to make it think it should use i.e the greek language instead of the
one language, say english you are using on that machine everyday.

Can this be done programmatically in a VB application (VS2008 Express
edition) on a form using two textboxes where I should like one of them
to present the input according to the greek alphabeth and the second
one presenting the input in latin letters?

Can the same be accomplished direct into i table in an Accessdatabase
with a "greek" and and "english" column?

I know it can be done by using the keyboard but I should like to have
it done automatically in my small application

Any hints
 
L

lexj

OK thanks.
I have looking at that namespace. So far no success. What I like to do
is just to have a certain textbox, when recieving focus and user
typing into it, "think this textbox and user is in Greece, using that
local" and when leaving the textbox user should be back to his normal
settings, i.e english. So I do not want to change the langauge
settings for the whole machine.
 
L

lexj

I found the clue to the solution in this older post from sep 2003
http://groups.google.com/group/micr...bcd211e87?lnk=gst&q=keyboard#0aa6925bcd211e87
using this:

Dim x As New System.Globalization.CultureInfo("el-GR") ' for Greek.
InputLanguage.CurrentInputLanguage =
InputLanguage.FromCulture(x)

Read here about the InputLanguage Class
http://msdn2.microsoft.com/en-us/library/system.windows.forms.inputlanguage(VS.71).aspx

".NET Framework Class Library
InputLanguage Class

Provides methods and fields to manage the input language. This class
cannot be inherited.

For a list of all members of this type, see InputLanguage Members.

System.Object
System.Windows.Forms.InputLanguage"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top