UltraComboEditor 禁用 MouseWheel

2016年8月22日

Private Sub cmb厂商名称_MouseWheel(sender As System.Object, e As System.Windows.Forms.HandledMouseEventArgs) Handles cmb厂商名称.MouseWheel
If Me.cmb厂商名称.DroppedDown Then
e.Handled = False
Else
e.Handled = True
End If
End Sub

Private Sub UltraComboEditor1_ControlAdded(sender As System.Object, e As System.Windows.Forms.ControlEventArgs) Handles cmb厂商名称.ControlAdded
AddHandler e.Control.MouseWheel, AddressOf Me.cmb厂商名称_MouseWheel
End Sub

Private Sub UltraComboEditor1_ControlRemoved(sender As System.Object, e As System.Windows.Forms.ControlEventArgs) Handles cmb厂商名称.ControlRemoved
RemoveHandler e.Control.MouseWheel, AddressOf Me.cmb厂商名称_MouseWheel
End Sub

声明: 本文采用 BY-NC-SA 协议进行授权. 转载请注明转自: UltraComboEditor 禁用 MouseWheel
本文的评论功能被关闭了.