码迷,mamicode.com
首页 > Web开发 > 详细

.NET RadioButton 触发双击事件

时间:2018-05-22 12:40:11      阅读:255      评论:0      收藏:0      [点我收藏+]

标签:err   .com   forms   ble   control   roc   blank   win   style   

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 

 参考自:https://www.experts-exchange.com/questions/27924642/VB-NET-2008-Radio-Button-Double-Click.html

 

.NET RadioButton 触发双击事件

标签:err   .com   forms   ble   control   roc   blank   win   style   

原文地址:https://www.cnblogs.com/lefour/p/9070864.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!