Hi ChristKingKennedy-5906,
The ContextMenu class is not available in .NET Core 3.1 and later versions. You can use ContextMenuStrip instead, which replaces and extends the ContextMenu control.
System.Windows.Forms.ContextMenuStrip cm = new System.Windows.Forms.ContextMenuStrip();
More details please refer to this document.
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.