Wrong appearence position of context menu
c#, contextmenu, mouse, winforms
Solution
Just translate the point to the grid:
m.Show(ServersTable, ServersTable.PointToClient(
new Point(Cursor.Position.X, Cursor.Position.Y)));
Problem
I have a datagridview and need of context menu. When i right-click on cell (RED POINT) - context menu shows.. But in wrong place. Can't understand why here is the code: ``` ContextMenu m = new ContextMenu(); m.Show(ServersTable, new Point(Cursor.Position.X, Cursor.Position.Y)); ``` That stuff really annoys me!