I have using System.Windows.Input;
at the top of my program, but it gives me an error saying that:
The type or namespace name 'Input' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)
And when I let IntelliSense popup on the period right after Windows
it only lists Forms
as a valid option. I'm using .NET framework 4.0 in Visual C# 2010 Express...
How can I fix this problem?
go to manage Nuget Package Manager and install input simulator package and WindowsInput package and the issue will be resolved
I suspect you've created a Windows Forms project, instead of a WPF project.
The types contributing to System.Windows.Input
are in PresentationCore.dll and potentially other WPF-related assemblies.
I don't know enough about the types in System.Windows.Input
to say for sure whether or not you can use them in a Windows Forms app, but I would at least encourage you to decide whether to go with Windows Forms or WPF, and then use types designed for that UI platform.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With