I have a Windows form with a calendar which is hidden. I want to show the form right under the current cell of a DataGridView. The position changes according to the position
You may try
[DllImport("user32.dll", EntryPoint = "GetCursorPos")] private static extern bool GetCursorPos(out Point lpPoint);
and call method as
Point pt; GetCursorPos(out pt);
pt will provide x and y.