Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Newbie question about local language settings

14 views
Skip to first unread message

lexj

unread,
Dec 22, 2007, 10:53:39 AM12/22/07
to
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

Cor Ligthert[MVP]

unread,
Dec 23, 2007, 3:24:23 AM12/23/07
to
Lexj,

I know how to set the local settings of an application, not of a complete
computer.

This namespace is for it.

http://msdn2.microsoft.com/nl-nl/library/system.globalization(en-us).aspx

Cor


"lexj" <traml...@hotmail.com> schreef in bericht
news:25acf2ad-d744-47e7...@x69g2000hsx.googlegroups.com...

lexj

unread,
Dec 23, 2007, 1:26:24 PM12/23/07
to
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.

On 23 Dec, 09:24, "Cor Ligthert[MVP]" <notmyfirstn...@planet.nl>
wrote:


> Lexj,
>
> I know how to set the local settings of an application, not of a complete
> computer.
>
> This namespace is for it.
>

> http://msdn2.microsoft.com/nl-nl/library/system.globalization(en-us)....
>
> Cor
>
> "lexj" <tramlin...@hotmail.com> schreef in berichtnews:25acf2ad-d744-47e7...@x69g2000hsx.googlegroups.com...

lexj

unread,
Dec 23, 2007, 3:44:47 PM12/23/07
to
I found the clue to the solution in this older post from sep 2003
http://groups.google.com/group/microsoft.public.dotnet.languages.vb/browse_thread/thread/7ffe69a4d32e2641/0aa6925bcd211e87?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"

0 new messages