Advertisement
Noxcivis

Preventing mousewheel from changing a combobox value

Jul 31st, 2019
178
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub comboStatus_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles comboStatus.MouseWheel
  2.         Try
  3.             Dim mwe As HandledMouseEventArgs = DirectCast(e, HandledMouseEventArgs)
  4.             mwe.Handled = True
  5.         Catch ex As Exception
  6.         End Try
  7. End Sub
Advertisement
RAW Paste Data Copied
Advertisement