Re: Different Languages on different textbos

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Sun, 29 Jul 2007 14:38:05 +0200, Gidi <shnapsi@xxxxxxxxxxxxxxxxxxxx> wrote:

Hi,

Thanks for the answers, but i'm sorry to tell you the UPPER works only if my
default language is English, but i'm talking about different situation, which
my default languge is hebrew and i've one textbox which i want to write only
in English Capital letters.

Thanks,
Gidi.

"Manish Bafna" wrote:

Hi,
If you want to write content of particular textbox in capital letters then
in Design Mode you just need to set its CharacterCasing property to Upper.
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"Gidi" wrote:

Hi,

I have a windows form with few TextBoxs,
In textbox1 i want always to write in English with Capital Letters, and in
all other textBoxs i want to write in the default language of the OS.

I tried to turn on\off the CapsLock with Enter and LostFocus event, but the
when i'm turning off the capsLock by clicking another button, the LostFocus
event is called but the click event doesn't (only on the next click).

So, what will be the best way to do it?

Thanks,
Gidi.




You could handle the KeyPress event on that TextBox and cancel the user input, replacing it with the English character (asuming Hebrew characters can translate to English ones), or trap the KeyDown event to get the keyboard key pressed to determine which English character should be entered.

--
Happy coding!
Morten Wennevik [C# MVP]
.



Relevant Pages

  • Re: How to create a Multi Level List
    ... This is the textbox viewing the combined category levels: ... Language, English, English for business). ...
    (microsoft.public.access.tablesdbdesign)
  • Re: How to create a Multi Level List
    ... I can use this query wherever I need to show the complete category, ... Language, English, English for business ... >>textbox, showing it in forms and reports. ...
    (microsoft.public.access.tablesdbdesign)
  • Changing the default language in specific textBox
    ... my user default language is hebrew but in some cases i want that the default ... language in specific textBox will be english (i mean that when the user will ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Setting Default Language in specific TextBox
    ... u should create a new component that inherits from textbox. ... javascript u can handle user inputs and check if pressed key is an english ... > event who preform like ALT + SHIFT (meaning, change the language of the ... > What i actually need is, to make my textBox to always write in English, no ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Citation Language
    ... for it in the upper right hand corner of the dialog? ... When I insert a citation, Word uses a language different from that which the ... My regional setting are setup for English, ...
    (microsoft.public.word.docmanagement)