Noxcivis icon

Preventing mousewheel from changing a combobox value

Noxcivis | PRO | 07/31/19 07:30:50 PM UTC | 0 ⭐ | 6132 👁️ | Never ⏰ | []
VB.NET |

310 B

|

None

|

0 👍

/

0 👎

Private Sub comboStatus_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles comboStatus.MouseWheel
        Try
            Dim mwe As HandledMouseEventArgs = DirectCast(e, HandledMouseEventArgs)
            mwe.Handled = True
        Catch ex As Exception
        End Try
End Sub

Comments