First of all, I've copied the code from this link to no effect.
I am attempting to handle both left clicks and right clicks on a button. Left clicks register and properly execute, right clicks have no effect at all. I believe the relevant code is below:
Dim Buttons As New Dictionary(Of Integer, Button)
...
' in a loop that creates each button
Dim B As New Button
AddHandler B.Click, AddressOf Button_MouseDown
Private Sub Button_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDown
'code to get uid
If e.Button = MouseButtons.Left Then
left_click(uid)
'this works
End If
If e.Button = MouseButtons.Right Then
right_click(uid)
'this doesn't
End If