I am attempting to build a TCP based controller for the servers and VMs in my house, I want each server to have a dedicated port so I can easily know which is which as there are quite a few HyperV instances running. I have designed the basic control server to my liking, but I am having trouble with ContextMenuStrips.
I have 18 servers or VMs I want to be able to manage through my program (Main purpose is running PowerShell scripts or other mundane tasks on all machines at once) but I cannot figure this part out. Each of the port listings exist within a panel, the panel contains a PictureBox and a Label. The ContextMenu Strip shown there is enabled on each of the panels which wrap the other items. How would I be able to find which one of the panels I right clicked on to update? Would I need to create a ContextMenu per panel, is just looking at pointer position at the right click action and having some lists that define boundaries the best way or am I just unaware of a better way to do this?