here is my code
Private Sub pnlGlGrid_MouseWheel(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles pnlGlGrid.MouseWheel
If Me.blnGlCodeScroll = True Then
'cancel scroll
End If
End Sub
what i want to do is if blnGlCodeScroll = true i dont want the user to be able to scroll the panel with the mousewheel. With keydown you can set e.handled to true and it will cancel it but there doesnt seem to be anything like that for the mousewheel.
Private Sub pnlGlGrid_MouseWheel(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles pnlGlGrid.MouseWheel
If Me.blnGlCodeScroll = True Then
'cancel scroll
End If
End Sub
what i want to do is if blnGlCodeScroll = true i dont want the user to be able to scroll the panel with the mousewheel. With keydown you can set e.handled to true and it will cancel it but there doesnt seem to be anything like that for the mousewheel.