InertiaM
Well-known member
I am trying to keep my code 'tidy' by incorporating the MouseDown and MouseUp events for the same button into one event.
The problem is, I cant seem to find a way of detecting which event (ie the MouseDown or the MouseUp) fired the Sub. Is this actually possible, or will I have to split it over two Subs?
VB.NET:
Private Sub Button4_Event (byval sender as object, byval e as system.Windows.Forms.MouseEventArgs) handles Button4.MouseDown, Button4.MouseUp
'if e = MouseDown then
'else
'end if
End Sub
The problem is, I cant seem to find a way of detecting which event (ie the MouseDown or the MouseUp) fired the Sub. Is this actually possible, or will I have to split it over two Subs?