在释放按钮事件 [英] Button event on release

查看:124
本文介绍了在释放按钮事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

林工作的一个应用程序来控制一些东西通过蓝牙。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆