I googled about this and didn't find any solutions because it needs user interact to do it, but is there any way to switch the keyboard layout using C# (MVC or Core) from Arabic to English and vice versa even if I force the user to refresh the page?
Asked
Active
Viewed 240 times
1
-
2Why can't the user change the keyboard? If you change the keyboard for your application, it will change it for all the applications currently running. – Neil Aug 11 '20 at 09:57
-
So Neil, still there any way to do it? – fiverbox.com Aug 11 '20 at 11:06
-
Is this a web page or a WPF/WinForms app? – Neil Aug 11 '20 at 12:46
1 Answers
1
This will most certainly not be possible, since Asp.Net is a serverside language.
You can also not achieve this using javascript, as stated in this post, so you need to capture the keydown event and manually replace it.
But the easiest way would probably be to advice your user to change his layout, since replacing it can be very very tricky.

lorenzw
- 366
- 1
- 10