I have a form (frmMain) with a datagrid (dgCustomerMain). I also created a contextmenu (contextCustomers) with a selection of "View Customer Detail". I would like to right click on a record to show the context menu, select the "View Customer Detail" item and then open up an existing form (frmCustomerDetail) to that particular record for editing. I have searched and tried similar posts, but they are either in C or only create a msgbox.
Currently, I have the right click code working:
Private Sub dgCustomerMain_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles dgCustomerMain.MouseUp
If e.Button = Windows.Forms.MouseButtons.Right Then
Now I just need the code to display the context and open the form to the correct record.