I use ActivateKeyboardLayout(HKL_NEXT, KLF_ACTIVATE);
to load Persian keyboard layout using Delphi XE2, But sometimes I click on TextBox or DbGrid control the keyboard automatically is changed to English layout.
How can I disable automatic changing of keyboard layout?
See Question&Answers more detail:os