Right Click Context Menu help in Form Designer

Hi all,

I’ve used the form designer to create some context menus, (which appear OK) but I’m unclear on how to capture clicks? Is there a field in the designer I need to populate, or is it adding some code by hand to the .designer.ps1?

Many thanks :slight_smile:

Edit, ok figured out the clicked action, how do I see which item was clicked?
$ContextMenuStrip2.ItemClicked is blank :confused:

figured it out :slight_smile:
had to use $_.ClickedItem instead of $ContextMenuStrip2.ItemClicked