public IntPtr Previous() { var flags = Keyboard.LayoutFlags.Activate | Keyboard.LayoutFlags.ReplaceLang | Keyboard.LayoutFlags.SetForProcess; return(Keyboard.ActivateKeyboardLayout(Keyboard.LayoutHandle.Previous, flags)); }