I can’t find System.Windows.Forms in import namespace. I need to use InputLanguage and can’t do that because it’s missing that namespace. Please help.
I think you can just use the class along with the namespace as
What version of .Net do you have installed?
I suggest having the latest one but especially 4.7.2 since it is the recommended one for Windows.Forms.
Also be aware that there is a caution on the Windows Forms Page:
“Classes within the Windows Forms namespace are not supported for use within a Windows service. Trying to use these classes from within a service may produce unexpected problems, such as diminished service performance and run-time exceptions.”
I have tried to update .Net from 4.7.0 to 4.7.2 but nothing happens. Maybe there is some another way to check input keyboard language in background?
What is your Studio version and your packages versions? It seems to be working on 2019.4
You could still try this workaround for older versions: