how to use LoadKeyboardLayout ? lazarus / 34-Windows ---------------------------------------------------------------------- majid.ebru · 2022-05-16 10:00 Hi how can i use LoadKeyboardLayout?? LoadKeyboardLayout('00000429', KLF_ACTIVATE); ---------------------------------------------------------------------- trev · 2022-05-16 11:10 See https://forum.lazarus.freepascal.org/index.php?topic=42694.15 ---------------------------------------------------------------------- majid.ebru · 2022-05-17 05:36 sorry i don't want to check keyboard state i want when i enter to editbox the language of it , chenged?? i want to change keyboard language to farsi to english to another language. thank you ---------------------------------------------------------------------- majid.ebru · 2022-06-01 09:04 can one help ot guide me ?? i want when i enter to edit box , the language of edit box chenged like that i press shift + alt (in windows)?? best regards ---------------------------------------------------------------------- ASerge · 2022-06-09 00:42 Quote from: majid.ebru on May 16, 2022, 12:00:32 pmhow can i use LoadKeyboardLayout?? LoadKeyboardLayout('00000429', KLF_ACTIVATE); It works fine for me: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i uses Windows; procedure TForm1.Edit1Enter(Sender: TObject);begin  LoadKeyboardLayout('00000429', KLF_ACTIVATE);end;Windows 7 still.