在释放按钮事件 [英] Button event on release
问题描述
林工作的一个应用程序来控制一些东西通过蓝牙。
Im working on an app to control some stuff over bluetooth.
目前我有一些按钮的形式。在每一个按钮,我想触发一个事件时,该按钮pssed下跌$ P $和触发不同的事件时松开按钮。
Currently I have a form with some buttons. On each button I want to trigger an event when the button is pressed down and fire a different event when the button is released.
这可能吗?
推荐答案
不知道什么是蓝牙的信息应该告诉我。
Not sure what the "bluetooth" info should tell me.
但在C#的WinForms,是的,这是可能的。见在MouseDown和MouseUp事件:的http:// MSDN。 microsoft.com/en-us/library/system.windows.forms.button_events.aspx (您可能需要将其与键盘事件结合起来,捕捉他们也一样)
But in C# Winforms, yes that is possible. See the MouseDown and MouseUp Events: http://msdn.microsoft.com/en-us/library/system.windows.forms.button_events.aspx (You may need to combine them with the keyboard events to capture them as well)
这篇关于在释放按钮事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!