If you are using Visual Studio, there is a GUI solution as well:
- From Toolbox add a ContextMenuStrip
- Select the context menu and add the right click items
- For each item set the click events to the corresponding functions
- Select the form / button / image / etc (any item) that the right click menu will be connected
- Set its ContextMenuStrip property to the menu you have created.