|
Finally, add a sentence contextMenu1.Show (Control control, Point pos, LeftRightAlignment alignment);
// The three parameters are the controls that can display the right-click menu, the mouse position, and whether the menu is displayed on the left or right of the mouse
//E.g. ContextMenu1.Show (dataGridView1, e.Location, LeftRightAlignment.Right); |
|