Missing an assembly reference when using SendKey

  • Автор темы Автор темы zenfreak
  • Дата начала Дата начала

zenfreak

Client
Регистрация
21.08.2013
Сообщения
249
Реакции
12
Баллы
18
I'm getting:

The type or namespace name "keys" does not exist in the the namespace 'System.Windows.Forms' (are you missing an assembly reference?)

When trying this:

Код:
Развернуть Свернуть Копировать
result = Emulator.SendKey(CT.Instance.ActiveTab.Handle, System.Windows.Forms.Keys.Enter, KeyboardEvent.Down);

I have also used:
using System.Windows.Forms;
using System.Windows;

And added WindowsFormsIntegration.dll into my References.
 
Try updating Net.Framework.
 
@VladZen .NET Framework 4.7 or a later update is already installed on this computer. What else should I do?
 
Yes, I own 2 licenses
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)