Cannot add Microsoft.Ink

2.5k views Asked by At

I have a c# codebehind to a web app I'm trying to add "using Microsoft.Ink" to, but it is not a valid namespace. Is there something I need to install before I do this? The documentation from Microsoft seems all over the place and there are no instructions on how to include this in the file. I checked in the modify menu for Visual Studio to see if I could add anything for tablet support and there is nothing.

How do I add "using Microsoft.Ink"?

3

There are 3 answers

1
James On

Microsoft.Ink comes with the Table PC SDK. The dll would be found in C:\Program Files\Reference Assemblies\Microsoft\Tablet PC\versionNo\ though it is quite an old library, and I think it it intended for WinForms, not Web.

If you wanted to move away from ASP.NET, alternatives you might want to look into are System.Windows.Ink for WPF or the InkCanvas control on UWP.

1
Vijunav Vastivch On

Microsoft has just:

Csharp
Internal
Runtime
SqlServer
VisualBasic
Win32

there is no lnk option. if you had a modified dll then you can add it to add reference if you want.

0
Lance U. Matthews On

According to the article Managed Library and Controls under the Windows Tablet PC documentation, the managed library assemblies are installed to the following directories:

  • %CommonProgramFiles%\Microsoft Shared\Ink\
  • %ProgramFiles%\Microsoft SDKs\Windows\v6.0\Bin\

I am using 64-bit Windows 10 Pro with Visual Studio 2015 and I have a Microsoft.Ink.dll file in both %CommonProgramFiles(x86)%\Microsoft Shared\Ink\ and %CommonProgramFiles%\Microsoft Shared\Ink\.