问题描述
你好
  我正在尝试使用 KeyPressEventHandler捕获密钥钩。
我已经在Windows窗体应用程序中实现了它
现在我想要使用窗口服务。
它编译精细&服务也可以开始和停止了
但问题在于
KeyPressEventHandler没有对用户的按键做出反应。
(威胁 ;当任何键按下KeyPressEventHandler应该引发事件。但是它在窗口服务中不起作用)
所以那里有在窗口服务中使用KeyPressEventHandler有什么问题吗?
是否可以使用它?
你可以帮助我吗?
hi
I am trying to capture key hook using KeyPressEventHandler .
I have achieved it in windows form application
now i want to do this using Window Services.
It Compiles fine & services can also be start & stopped
but here problem is that
KeyPressEventHandler not reacting for key press by user.
(menace when any key press the KeyPressEventHandler should raise event. but it is not working in window services)
so is there any problem by using KeyPressEventHandler in window services?
does it possible to use it?
can you please help me for that?
这篇关于KeyPressEventHandler无法在Window Services中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!