[DllImport("user32")]
        private static extern uint ActivateKeyboardLayout(uint hkl, uint Flags);




private void comboboxEdit_Enter(object sender, EventArgs e)
        {
            InitData(sender);
            try
            {
                ActivateKeyboardLayout(1, 1);
            }
            catch (Exception ex)
            {
            }
        }

        private void comboboxEdit_Leave(object sender, EventArgs e)
        {
            try
            {
                ActivateKeyboardLayout(0, 1);
            }
            catch (Exception ex)
            {
            }
        }

相关文章:

  • 2021-10-19
  • 2021-09-03
  • 2022-02-21
  • 2022-12-23
  • 2021-05-29
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2021-11-17
  • 2021-12-12
  • 2021-08-25
  • 2021-11-30
相关资源
相似解决方案