VB Code:
  1. If Button = 2 Then
  2.  
  3.    'This code will be executed when the user clicks on the right mouse button.
  4.  
  5. End if

This should work, I hope.