.NET RadioButton 触发双击事件
程序员文章站
2022-05-28 22:53:54
参考自:https://www.experts-exchange.com/questions/27924642/VB-NET-2008-Radio-Button-Double-Click.html ......
Public Class DoubleClickRadioButton Inherits System.Windows.Forms.RadioButton Public Sub New() Me.SetStyle(ControlStyles.StandardClick Or ControlStyles.StandardDoubleClick, True) End Sub 'NEW EVENTS THAT WILL NOW BE EXPOSED Public Shadows Event MouseDoubleClick As MouseEventHandler 'DELEGATES TO HANDLE PROCESSING OF THE EVENTS Public Delegate Sub MouseEventHandler(ByVal sender As Object, ByVal e As MouseEventArgs) Protected Overrides Sub onMouseDoubleClick(ByVal e As MouseEventArgs) RaiseEvent MouseDoubleClick(Me, e) End Sub End Class
参考自:
上一篇: POJ2505 A multiplication game(博弈)
下一篇: 线程池
推荐阅读
-
ASP.Net防止刷新自动触发事件的解决方案
-
.NET RadioButton 触发双击事件
-
结合.net框架在C#派生类中触发基类事件及实现接口事件
-
ASP.Net中防止刷新自动触发事件的解决方案
-
c# 托盘双击不触发单击事件的实现方法
-
.NET RadioButton 触发双击事件
-
结合.net框架在C#派生类中触发基类事件及实现接口事件
-
html中在鼠标双击元素时触发的事件属性ondblclick
-
VC++6.0新手上路心得,关于自定义消息,出现error C2065: 'WM_USER1' : undeclared identifier和双击的时候会触发“鼠标移动事件”
-
js触发asp.net的Button的Onclick事件应用_javascript技巧