Hard Question - How to make a TextBox always write in English

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gidi

    Hard Question - How to make a TextBox always write in English

    Hi,

    For the last week, i'm looking for a way to make a TextBox always write in
    English (No matter what the OS default language is).
    i asked here few times but the answers i got didn't help me. i search in
    google and found a way with changing the CultureInfo but still didn't work on
    a TextBox. i'm sure there's a way to do that, but i don't know what's the way.

    I'm desperate, if some one knows the answer, i will be very thankful to know
    it also (example will be great....)

    Thanks,
  • Hans Kesting

    #2
    Re: Hard Question - How to make a TextBox always write in English

    Gidi wrote:[color=blue]
    > Hi,
    >
    > For the last week, i'm looking for a way to make a TextBox always
    > write in English (No matter what the OS default language is).
    > i asked here few times but the answers i got didn't help me. i search
    > in google and found a way with changing the CultureInfo but still
    > didn't work on a TextBox. i'm sure there's a way to do that, but i
    > don't know what's the way.
    >
    > I'm desperate, if some one knows the answer, i will be very thankful
    > to know it also (example will be great....)
    >
    > Thanks,[/color]

    What do you mean by "always write in English"? I don't think
    you mean "if the user types French (or any other language), translate
    to English" :-)

    Hans Kesting


    Comment

    • Gidi

      #3
      Re: Hard Question - How to make a TextBox always write in English

      Hi,

      What i mean is, that no matter what the OS default language is, in the text
      box it will always type the English Letter on the keyboard. for example if i
      have a french keyboard and i want to print A (in english) i will press s (in
      french) - meaning that if the A (english) and s (french) are the same key on
      the keyboard it will always type the english letter. i don't mean to
      translate.

      "Hans Kesting" wrote:
      [color=blue]
      > Gidi wrote:[color=green]
      > > Hi,
      > >
      > > For the last week, i'm looking for a way to make a TextBox always
      > > write in English (No matter what the OS default language is).
      > > i asked here few times but the answers i got didn't help me. i search
      > > in google and found a way with changing the CultureInfo but still
      > > didn't work on a TextBox. i'm sure there's a way to do that, but i
      > > don't know what's the way.
      > >
      > > I'm desperate, if some one knows the answer, i will be very thankful
      > > to know it also (example will be great....)
      > >
      > > Thanks,[/color]
      >
      > What do you mean by "always write in English"? I don't think
      > you mean "if the user types French (or any other language), translate
      > to English" :-)
      >
      > Hans Kesting
      >
      >
      >[/color]

      Comment

      • Ronnie Edgar

        #4
        RE: Hard Question - How to make a TextBox always write in English

        Hello Gidi

        One way you could do this is by trapping the windows message that is
        generated by the keystroke.

        i.e. the Lparam of the keystroke is the same regardless of language settings.

        cut 'n' paste the following into a form and a class respectively

        Form...

        using System;
        using System.Drawing;
        using System.Collecti ons;
        using System.Componen tModel;
        using System.Windows. Forms;
        using System.Data;

        namespace TestKB
        {
        /// <summary>
        /// Summary description for Form1.
        /// </summary>
        public class Form1 : System.Windows. Forms.Form
        {
        private System.Windows. Forms.TextBox textBox1;
        private testMessageFilt er fltHelp;
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.Componen tModel.Containe r components = null;

        public Form1()
        {
        //
        // Required for Windows Form Designer support
        //
        InitializeCompo nent();

        //create a new messagefilter
        fltHelp = new testMessageFilt er();


        //add the filter to the application
        Application.Add MessageFilter(f ltHelp);

        //
        // TODO: Add any constructor code after InitializeCompo nent call
        //
        }

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose( bool disposing )
        {
        if( disposing )
        {
        if (components != null)
        {
        components.Disp ose();
        }
        }
        base.Dispose( disposing );
        }

        #region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeCompo nent()
        {
        this.textBox1 = new System.Windows. Forms.TextBox() ;
        this.SuspendLay out();
        //
        // textBox1
        //
        this.textBox1.L ocation = new System.Drawing. Point(88, 64);
        this.textBox1.N ame = "textBox1";
        this.textBox1.S ize = new System.Drawing. Size(224, 20);
        this.textBox1.T abIndex = 0;
        this.textBox1.T ext = "textBox1";

        //
        // Form1
        //
        this.AutoScaleB aseSize = new System.Drawing. Size(5, 13);
        this.ClientSize = new System.Drawing. Size(360, 334);
        this.Controls.A dd(this.textBox 1);
        this.Name = "Form1";
        this.Text = "Form1";

        this.ResumeLayo ut(false);

        }
        #endregion

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
        Application.Run (new Form1());
        }



        }
        }




        Class....

        using System;
        using System.Windows. Forms ;

        namespace TestKB
        {
        /// <summary>
        /// Summary description for MessageFilter.
        /// </summary>
        public class testMessageFilt er:IMessageFilt er
        {
        private System.Windows. Forms.Form m_Parent;

        public bool PreFilterMessag e(ref Message m)
        {

        if (m.Msg <30000 & m.Msg != 280)
        {
        MessageBox.Show (m.LParam.ToStr ing());
        }

        return false;

        }





        public System.Windows. Forms.Form Parent
        {
        get
        {
        return m_Parent ;
        }
        set
        {
        m_Parent = value;
        }
        }

        }
        }

        the messageboxes that pop represent the key that is pressed not the
        cahracter... you can map these to english keyboard characters..

        kind regards

        Ronnie



        "Gidi" wrote:
        [color=blue]
        > Hi,
        >
        > For the last week, i'm looking for a way to make a TextBox always write in
        > English (No matter what the OS default language is).
        > i asked here few times but the answers i got didn't help me. i search in
        > google and found a way with changing the CultureInfo but still didn't work on
        > a TextBox. i'm sure there's a way to do that, but i don't know what's the way.
        >
        > I'm desperate, if some one knows the answer, i will be very thankful to know
        > it also (example will be great....)
        >
        > Thanks,[/color]

        Comment

        • Gidi

          #5
          RE: Hard Question - How to make a TextBox always write in English

          Ronnie,

          First of all Thanks.

          i tried that, but what i need is not to know which key was pressed. i want
          to draw\print in the text box only the English Letters. i need that TextBox
          will show only English Letters.
          i.e. if my default langauge is French and i want to enter my name to that
          textbox in english, i won't be have to change the langauge (by pressing
          Alt+Shift), just by typing Gidi using the english Keys in the keyboard and
          the textbox will display Gidi.

          "Ronnie Edgar" wrote:
          [color=blue]
          > Hello Gidi
          >
          > One way you could do this is by trapping the windows message that is
          > generated by the keystroke.
          >
          > i.e. the Lparam of the keystroke is the same regardless of language settings.
          >
          > cut 'n' paste the following into a form and a class respectively
          >
          > Form...
          >
          > using System;
          > using System.Drawing;
          > using System.Collecti ons;
          > using System.Componen tModel;
          > using System.Windows. Forms;
          > using System.Data;
          >
          > namespace TestKB
          > {
          > /// <summary>
          > /// Summary description for Form1.
          > /// </summary>
          > public class Form1 : System.Windows. Forms.Form
          > {
          > private System.Windows. Forms.TextBox textBox1;
          > private testMessageFilt er fltHelp;
          > /// <summary>
          > /// Required designer variable.
          > /// </summary>
          > private System.Componen tModel.Containe r components = null;
          >
          > public Form1()
          > {
          > //
          > // Required for Windows Form Designer support
          > //
          > InitializeCompo nent();
          >
          > //create a new messagefilter
          > fltHelp = new testMessageFilt er();
          >
          >
          > //add the filter to the application
          > Application.Add MessageFilter(f ltHelp);
          >
          > //
          > // TODO: Add any constructor code after InitializeCompo nent call
          > //
          > }
          >
          > /// <summary>
          > /// Clean up any resources being used.
          > /// </summary>
          > protected override void Dispose( bool disposing )
          > {
          > if( disposing )
          > {
          > if (components != null)
          > {
          > components.Disp ose();
          > }
          > }
          > base.Dispose( disposing );
          > }
          >
          > #region Windows Form Designer generated code
          > /// <summary>
          > /// Required method for Designer support - do not modify
          > /// the contents of this method with the code editor.
          > /// </summary>
          > private void InitializeCompo nent()
          > {
          > this.textBox1 = new System.Windows. Forms.TextBox() ;
          > this.SuspendLay out();
          > //
          > // textBox1
          > //
          > this.textBox1.L ocation = new System.Drawing. Point(88, 64);
          > this.textBox1.N ame = "textBox1";
          > this.textBox1.S ize = new System.Drawing. Size(224, 20);
          > this.textBox1.T abIndex = 0;
          > this.textBox1.T ext = "textBox1";
          >
          > //
          > // Form1
          > //
          > this.AutoScaleB aseSize = new System.Drawing. Size(5, 13);
          > this.ClientSize = new System.Drawing. Size(360, 334);
          > this.Controls.A dd(this.textBox 1);
          > this.Name = "Form1";
          > this.Text = "Form1";
          >
          > this.ResumeLayo ut(false);
          >
          > }
          > #endregion
          >
          > /// <summary>
          > /// The main entry point for the application.
          > /// </summary>
          > [STAThread]
          > static void Main()
          > {
          > Application.Run (new Form1());
          > }
          >
          >
          >
          > }
          > }
          >
          >
          >
          >
          > Class....
          >
          > using System;
          > using System.Windows. Forms ;
          >
          > namespace TestKB
          > {
          > /// <summary>
          > /// Summary description for MessageFilter.
          > /// </summary>
          > public class testMessageFilt er:IMessageFilt er
          > {
          > private System.Windows. Forms.Form m_Parent;
          >
          > public bool PreFilterMessag e(ref Message m)
          > {
          >
          > if (m.Msg <30000 & m.Msg != 280)
          > {
          > MessageBox.Show (m.LParam.ToStr ing());
          > }
          >
          > return false;
          >
          > }
          >
          >
          >
          >
          >
          > public System.Windows. Forms.Form Parent
          > {
          > get
          > {
          > return m_Parent ;
          > }
          > set
          > {
          > m_Parent = value;
          > }
          > }
          >
          > }
          > }
          >
          > the messageboxes that pop represent the key that is pressed not the
          > cahracter... you can map these to english keyboard characters..
          >
          > kind regards
          >
          > Ronnie
          >
          >
          >
          > "Gidi" wrote:
          >[color=green]
          > > Hi,
          > >
          > > For the last week, i'm looking for a way to make a TextBox always write in
          > > English (No matter what the OS default language is).
          > > i asked here few times but the answers i got didn't help me. i search in
          > > google and found a way with changing the CultureInfo but still didn't work on
          > > a TextBox. i'm sure there's a way to do that, but i don't know what's the way.
          > >
          > > I'm desperate, if some one knows the answer, i will be very thankful to know
          > > it also (example will be great....)
          > >
          > > Thanks,[/color][/color]

          Comment

          • Christof Nordiek

            #6
            Re: Hard Question - How to make a TextBox always write in English

            If you're talking about the keyboardlayout:
            Look for InputLanguage

            Christof

            "Gidi" <shnapsi@hotmai l.com.dontspam> schrieb im Newsbeitrag
            news:F3BCBCA5-CE1B-4E62-87FB-2A18B439485D@mi crosoft.com...[color=blue]
            > Hi,
            >
            > For the last week, i'm looking for a way to make a TextBox always write in
            > English (No matter what the OS default language is).
            > i asked here few times but the answers i got didn't help me. i search in
            > google and found a way with changing the CultureInfo but still didn't work
            > on
            > a TextBox. i'm sure there's a way to do that, but i don't know what's the
            > way.
            >
            > I'm desperate, if some one knows the answer, i will be very thankful to
            > know
            > it also (example will be great....)
            >
            > Thanks,[/color]


            Comment

            • Ronnie Edgar

              #7
              RE: Hard Question - How to make a TextBox always write in English

              HI Gidi

              I don't think what you are trying to do is possible, as far as I am aware
              there is no internal .net way to know that w on an english keyboard = z on a
              french keyboard, so you will have to trap the keystrokes and somehow get
              their source and then map these to english characters.

              using the method outlined below, you get the following results.

              when the key is located in the following UK position:

              a the lparam for the message is 1966081 if you pressed the q key in france
              (press the a key UK you get the same message)

              q the lparam is 1048577 this is the french a key,

              so you need to trap these messages, and map these to the UK equivalent
              characters for these messages. therefore you will have to proxy the textbox
              with the filter class

              regards

              Ronnie

              "Gidi" wrote:
              [color=blue]
              > Ronnie,
              >
              > First of all Thanks.
              >
              > i tried that, but what i need is not to know which key was pressed. i want
              > to draw\print in the text box only the English Letters. i need that TextBox
              > will show only English Letters.
              > i.e. if my default langauge is French and i want to enter my name to that
              > textbox in english, i won't be have to change the langauge (by pressing
              > Alt+Shift), just by typing Gidi using the english Keys in the keyboard and
              > the textbox will display Gidi.
              >
              > "Ronnie Edgar" wrote:
              >[color=green]
              > > Hello Gidi
              > >
              > > One way you could do this is by trapping the windows message that is
              > > generated by the keystroke.
              > >
              > > i.e. the Lparam of the keystroke is the same regardless of language settings.
              > >
              > > cut 'n' paste the following into a form and a class respectively
              > >
              > > Form...
              > >
              > > using System;
              > > using System.Drawing;
              > > using System.Collecti ons;
              > > using System.Componen tModel;
              > > using System.Windows. Forms;
              > > using System.Data;
              > >
              > > namespace TestKB
              > > {
              > > /// <summary>
              > > /// Summary description for Form1.
              > > /// </summary>
              > > public class Form1 : System.Windows. Forms.Form
              > > {
              > > private System.Windows. Forms.TextBox textBox1;
              > > private testMessageFilt er fltHelp;
              > > /// <summary>
              > > /// Required designer variable.
              > > /// </summary>
              > > private System.Componen tModel.Containe r components = null;
              > >
              > > public Form1()
              > > {
              > > //
              > > // Required for Windows Form Designer support
              > > //
              > > InitializeCompo nent();
              > >
              > > //create a new messagefilter
              > > fltHelp = new testMessageFilt er();
              > >
              > >
              > > //add the filter to the application
              > > Application.Add MessageFilter(f ltHelp);
              > >
              > > //
              > > // TODO: Add any constructor code after InitializeCompo nent call
              > > //
              > > }
              > >
              > > /// <summary>
              > > /// Clean up any resources being used.
              > > /// </summary>
              > > protected override void Dispose( bool disposing )
              > > {
              > > if( disposing )
              > > {
              > > if (components != null)
              > > {
              > > components.Disp ose();
              > > }
              > > }
              > > base.Dispose( disposing );
              > > }
              > >
              > > #region Windows Form Designer generated code
              > > /// <summary>
              > > /// Required method for Designer support - do not modify
              > > /// the contents of this method with the code editor.
              > > /// </summary>
              > > private void InitializeCompo nent()
              > > {
              > > this.textBox1 = new System.Windows. Forms.TextBox() ;
              > > this.SuspendLay out();
              > > //
              > > // textBox1
              > > //
              > > this.textBox1.L ocation = new System.Drawing. Point(88, 64);
              > > this.textBox1.N ame = "textBox1";
              > > this.textBox1.S ize = new System.Drawing. Size(224, 20);
              > > this.textBox1.T abIndex = 0;
              > > this.textBox1.T ext = "textBox1";
              > >
              > > //
              > > // Form1
              > > //
              > > this.AutoScaleB aseSize = new System.Drawing. Size(5, 13);
              > > this.ClientSize = new System.Drawing. Size(360, 334);
              > > this.Controls.A dd(this.textBox 1);
              > > this.Name = "Form1";
              > > this.Text = "Form1";
              > >
              > > this.ResumeLayo ut(false);
              > >
              > > }
              > > #endregion
              > >
              > > /// <summary>
              > > /// The main entry point for the application.
              > > /// </summary>
              > > [STAThread]
              > > static void Main()
              > > {
              > > Application.Run (new Form1());
              > > }
              > >
              > >
              > >
              > > }
              > > }
              > >
              > >
              > >
              > >
              > > Class....
              > >
              > > using System;
              > > using System.Windows. Forms ;
              > >
              > > namespace TestKB
              > > {
              > > /// <summary>
              > > /// Summary description for MessageFilter.
              > > /// </summary>
              > > public class testMessageFilt er:IMessageFilt er
              > > {
              > > private System.Windows. Forms.Form m_Parent;
              > >
              > > public bool PreFilterMessag e(ref Message m)
              > > {
              > >
              > > if (m.Msg <30000 & m.Msg != 280)
              > > {
              > > MessageBox.Show (m.LParam.ToStr ing());
              > > }
              > >
              > > return false;
              > >
              > > }
              > >
              > >
              > >
              > >
              > >
              > > public System.Windows. Forms.Form Parent
              > > {
              > > get
              > > {
              > > return m_Parent ;
              > > }
              > > set
              > > {
              > > m_Parent = value;
              > > }
              > > }
              > >
              > > }
              > > }
              > >
              > > the messageboxes that pop represent the key that is pressed not the
              > > cahracter... you can map these to english keyboard characters..
              > >
              > > kind regards
              > >
              > > Ronnie
              > >
              > >
              > >
              > > "Gidi" wrote:
              > >[color=darkred]
              > > > Hi,
              > > >
              > > > For the last week, i'm looking for a way to make a TextBox always write in
              > > > English (No matter what the OS default language is).
              > > > i asked here few times but the answers i got didn't help me. i search in
              > > > google and found a way with changing the CultureInfo but still didn't work on
              > > > a TextBox. i'm sure there's a way to do that, but i don't know what's the way.
              > > >
              > > > I'm desperate, if some one knows the answer, i will be very thankful to know
              > > > it also (example will be great....)
              > > >
              > > > Thanks,[/color][/color][/color]

              Comment

              • Gidi

                #8
                Re: Hard Question - How to make a TextBox always write in English

                Thanks,

                If i set the InputLanguage to English (by the way how do i do that?), will
                my textBox write only in English (at least until the user will change it)?

                "Christof Nordiek" wrote:
                [color=blue]
                > If you're talking about the keyboardlayout:
                > Look for InputLanguage
                >
                > Christof
                >
                > "Gidi" <shnapsi@hotmai l.com.dontspam> schrieb im Newsbeitrag
                > news:F3BCBCA5-CE1B-4E62-87FB-2A18B439485D@mi crosoft.com...[color=green]
                > > Hi,
                > >
                > > For the last week, i'm looking for a way to make a TextBox always write in
                > > English (No matter what the OS default language is).
                > > i asked here few times but the answers i got didn't help me. i search in
                > > google and found a way with changing the CultureInfo but still didn't work
                > > on
                > > a TextBox. i'm sure there's a way to do that, but i don't know what's the
                > > way.
                > >
                > > I'm desperate, if some one knows the answer, i will be very thankful to
                > > know
                > > it also (example will be great....)
                > >
                > > Thanks,[/color]
                >
                >
                >[/color]

                Comment

                • Ronnie Edgar

                  #9
                  Re: Hard Question - How to make a TextBox always write in English

                  You need to install the language you want to convert to, so if you are in
                  france and you want to convert to english layout you need to install the
                  english layout on the machine. Be aware that setting the
                  inputlanguage.C urrentLanguage or wahtever affects the whole thread, and not
                  just the textbox.

                  have a look at the InputLanguage Class and you will see usage.

                  regards

                  ronnie

                  "Gidi" wrote:
                  [color=blue]
                  > Thanks,
                  >
                  > If i set the InputLanguage to English (by the way how do i do that?), will
                  > my textBox write only in English (at least until the user will change it)?
                  >
                  > "Christof Nordiek" wrote:
                  >[color=green]
                  > > If you're talking about the keyboardlayout:
                  > > Look for InputLanguage
                  > >
                  > > Christof
                  > >
                  > > "Gidi" <shnapsi@hotmai l.com.dontspam> schrieb im Newsbeitrag
                  > > news:F3BCBCA5-CE1B-4E62-87FB-2A18B439485D@mi crosoft.com...[color=darkred]
                  > > > Hi,
                  > > >
                  > > > For the last week, i'm looking for a way to make a TextBox always write in
                  > > > English (No matter what the OS default language is).
                  > > > i asked here few times but the answers i got didn't help me. i search in
                  > > > google and found a way with changing the CultureInfo but still didn't work
                  > > > on
                  > > > a TextBox. i'm sure there's a way to do that, but i don't know what's the
                  > > > way.
                  > > >
                  > > > I'm desperate, if some one knows the answer, i will be very thankful to
                  > > > know
                  > > > it also (example will be great....)
                  > > >
                  > > > Thanks,[/color]
                  > >
                  > >
                  > >[/color][/color]

                  Comment

                  • Gidi

                    #10
                    Re: Hard Question - How to make a TextBox always write in English

                    Thanks, Ronnie.

                    I have Hebrew and English installed on my machine, and i want to put my
                    program in machines that the default language is Hebrew (those machine will
                    have hebrew and english installed too). what i'm thinking to do is to change
                    the language each time the TextBox Get\Lose Focus, what do you think?

                    "Ronnie Edgar" wrote:
                    [color=blue]
                    > You need to install the language you want to convert to, so if you are in
                    > france and you want to convert to english layout you need to install the
                    > english layout on the machine. Be aware that setting the
                    > inputlanguage.C urrentLanguage or wahtever affects the whole thread, and not
                    > just the textbox.
                    >
                    > have a look at the InputLanguage Class and you will see usage.
                    >
                    > regards
                    >
                    > ronnie
                    >
                    > "Gidi" wrote:
                    >[color=green]
                    > > Thanks,
                    > >
                    > > If i set the InputLanguage to English (by the way how do i do that?), will
                    > > my textBox write only in English (at least until the user will change it)?
                    > >
                    > > "Christof Nordiek" wrote:
                    > >[color=darkred]
                    > > > If you're talking about the keyboardlayout:
                    > > > Look for InputLanguage
                    > > >
                    > > > Christof
                    > > >
                    > > > "Gidi" <shnapsi@hotmai l.com.dontspam> schrieb im Newsbeitrag
                    > > > news:F3BCBCA5-CE1B-4E62-87FB-2A18B439485D@mi crosoft.com...
                    > > > > Hi,
                    > > > >
                    > > > > For the last week, i'm looking for a way to make a TextBox always write in
                    > > > > English (No matter what the OS default language is).
                    > > > > i asked here few times but the answers i got didn't help me. i search in
                    > > > > google and found a way with changing the CultureInfo but still didn't work
                    > > > > on
                    > > > > a TextBox. i'm sure there's a way to do that, but i don't know what's the
                    > > > > way.
                    > > > >
                    > > > > I'm desperate, if some one knows the answer, i will be very thankful to
                    > > > > know
                    > > > > it also (example will be great....)
                    > > > >
                    > > > > Thanks,
                    > > >
                    > > >
                    > > >[/color][/color][/color]

                    Comment

                    • Ronnie Edgar

                      #11
                      Re: Hard Question - How to make a TextBox always write in English

                      Hi Gidi

                      That should work,

                      kind regards

                      Ronnie

                      Comment

                      • Gidi

                        #12
                        Re: Hard Question - How to make a TextBox always write in English

                        Hi Ronnie,

                        if my Default langauage is Hebrew, how can i set the InputLangauge to be
                        English. there are only 2 kins of parameters CurrentLangauge and
                        DefaultLanguage , and when i look at the example in MSDN i get the same result
                        because when i start my program my default langauge is my current langauge.
                        so how can i change it?

                        "Ronnie Edgar" wrote:
                        [color=blue]
                        > Hi Gidi
                        >
                        > That should work,
                        >
                        > kind regards
                        >
                        > Ronnie
                        >[/color]

                        Comment

                        • Gidi

                          #13
                          Re: Hard Question - How to make a TextBox always write in English

                          Hi Ronnie,

                          i'm Happy to announce that i found a simple solution to this problem:

                          i'm checking if my current language is not english and while it's not i'm
                          sending alt+shift using SendKeys.Send(" +%");

                          is there a better way to know what is the current language then :
                          if(myCurrentLan guage.Culture.E nglishName!="En glish (United States)")

                          the problem here is, if it won't be English United Sates and it will be
                          English UK it still be good but the alt+shift event will be called.

                          what do you think about my solution?


                          Thank you very much for your help
                          Gidi


                          "Ronnie Edgar" wrote:
                          [color=blue]
                          > Hi Gidi
                          >
                          > That should work,
                          >
                          > kind regards
                          >
                          > Ronnie
                          >[/color]

                          Comment

                          • Ronnie Edgar

                            #14
                            Re: Hard Question - How to make a TextBox always write in English

                            Hi Gidi
                            if you use InputLanguage.C urrentInputLang uage and set it it sets the
                            language only for the program... and not! for the computer so you will not
                            see the language change at machine level only at application level.

                            regards
                            ronnie

                            Comment

                            • Christof Nordiek

                              #15
                              Re: Hard Question - How to make a TextBox always write in English

                              Hi Gidi,

                              to get the InputLanguage you wish you can use the InputLanguage.F romCulture
                              method.

                              Christof

                              "Gidi" <shnapsi@hotmai l.com.dontspam> schrieb im Newsbeitrag
                              news:C0A9F5B1-68FA-480C-9447-C183B1D0B906@mi crosoft.com...[color=blue]
                              > Hi Ronnie,
                              >
                              > if my Default langauage is Hebrew, how can i set the InputLangauge to be
                              > English. there are only 2 kins of parameters CurrentLangauge and
                              > DefaultLanguage , and when i look at the example in MSDN i get the same
                              > result
                              > because when i start my program my default langauge is my current
                              > langauge.
                              > so how can i change it?
                              >
                              > "Ronnie Edgar" wrote:
                              >[color=green]
                              >> Hi Gidi
                              >>
                              >> That should work,
                              >>
                              >> kind regards
                              >>
                              >> Ronnie
                              >>[/color][/color]


                              Comment

                              Working...